pestphp/pest · error · MissingDependency

The [Tia mode] feature requires [git]. Please install it and

Error message

The [Tia mode] feature requires [git]. Please install it and try again.

What it means

Error "The [Tia mode] feature requires [git]. Please install it and try again." thrown in pestphp/pest.

Source

Thrown at src/Plugins/Tia/ChangedFiles.php:182

    }

    /**
     * @param  array<string, true>  $candidates
     * @return array<string, true>
     */
    private function filterIgnored(array $candidates): array
    {
        if ($candidates === []) {
            return $candidates;
        }

        $result = $this->git->result(
            ['check-ignore', '--no-index', '-z', '--stdin'],
            implode("\x00", array_keys($candidates)),
        );

        if ($result['exitCode'] !== 0 && $result['exitCode'] !== 1) {
            throw new MissingDependency('Tia mode', 'git');
        }

        $output = $result['output'];

        if ($output === '') {
            return $candidates;
        }

        foreach (explode("\x00", rtrim($output, "\x00")) as $ignored) {
            if ($ignored !== '') {
                unset($candidates[$ignored]);
            }
        }

        return $candidates;
    }

    public function currentBranch(): ?string

View on GitHub (pinned to 1af74a215c)

When it happens

Trigger: Thrown at src/Plugins/Tia/ChangedFiles.php:182 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of pestphp/pest@1af74a215c (2026-08-21). Data as JSON: /api/errors/da68939c2828c529. Report an issue: GitHub.