code: public function fetchTags(): array
      {
          $output = $this->gitWorkingCopy->tag(['l' => true]);
          $tags = (array) preg_split("/\r\n|\n|\r/", rtrim($output));
          return array_map([$this, 'trimTags'], $tags);
      }
docs: Fetches the Tags via the `git branch` command.
  
  @return mixed[]