Skip to content

[Twig 4] Add PHPUnit as dev dependency #3035

[Twig 4] Add PHPUnit as dev dependency

[Twig 4] Add PHPUnit as dev dependency #3035

Triggered via pull request November 25, 2024 10:48
Status Failure
Total duration 1m 30s
Artifacts

ci.yml

on: pull_request
Matrix: tests
Matrix: PHPStan
Matrix: extension-tests
Matrix: integration-tests
Fit to window
Zoom out
Zoom in

Annotations

32 errors
PHPStan (8.4): src/Environment.php#L236
Cannot access constant class on string|Twig\Cache\CacheInterface|false.
PHPStan (8.4): src/Environment.php#L840
Method Twig\Environment::getUnaryOperators() should return array<string, array{precedence: int, class: class-string<Twig\Node\Expression\Unary\AbstractUnary>}> but returns array<string, array{precedence: int, class: class-string<Twig\Node\Expression\AbstractExpression>}>.
PHPStan (8.4): src/Environment.php#L850
Method Twig\Environment::getBinaryOperators() should return array<string, array{precedence: int, class: class-string<Twig\Node\Expression\Binary\AbstractBinary>, associativity: 1|2}> but returns array<string, array{precedence: int, class?: class-string<Twig\Node\Expression\AbstractExpression>, associativity: 1|2}>.
PHPStan (8.4): src/Node/ForNode.php#L1
Ignored error pattern #^Constructor of class Twig\\Node\\ForNode has an unused parameter \$ifexpr\.$# (constructor.unusedParameter) in path /home/runner/work/Twig/Twig/src/Node/ForNode.php was not matched in reported errors.
PHPStan (8.4): src/Node/Node.php#L1
Ignored error pattern #^PHPDoc tag @param for parameter $name with type int|string is not subtype of native type string\.$# (parameter.phpDocType) in path /home/runner/work/Twig/Twig/src/Node/Node.php was not matched in reported errors.
PHPStan (8.4): src/Runtime/LoopIterator.php#L50
Property Twig\Runtime\LoopIterator<TKey,TValue>::$seq (Iterator) does not accept Traversable<mixed, mixed>.
PHPStan (8.4): src/Runtime/LoopIterator.php#L52
Property Twig\Runtime\LoopIterator<TKey,TValue>::$seq (Iterator) does not accept Traversable<TKey, TValue>.
PHPStan (8.4)
Process completed with exit code 1.
cssinliner-extra PHP 8.2
Process completed with exit code 127.
markdown-extra PHP 8.3
Process completed with exit code 127.
cssinliner-extra PHP 8.4
Process completed with exit code 127.
cache-extra PHP 8.4
Process completed with exit code 127.
inky-extra PHP 8.2
Process completed with exit code 127.
string-extra PHP 8.3
Process completed with exit code 127.
intl-extra PHP 8.2
Process completed with exit code 127.
twig-extra-bundle PHP 8.2
Process completed with exit code 127.
inky-extra PHP 8.4
Process completed with exit code 127.
cache-extra PHP 8.3
Process completed with exit code 127.
html-extra PHP 8.2
Process completed with exit code 127.
cssinliner-extra PHP 8.3
Process completed with exit code 127.
html-extra PHP 8.3
Process completed with exit code 127.
inky-extra PHP 8.3
Process completed with exit code 127.
string-extra PHP 8.2
Process completed with exit code 127.
markdown-extra PHP 8.2
Process completed with exit code 127.
intl-extra PHP 8.3
Process completed with exit code 127.
twig-extra-bundle PHP 8.3
Process completed with exit code 127.
html-extra PHP 8.4
Process completed with exit code 127.
cache-extra PHP 8.2
Process completed with exit code 127.
intl-extra PHP 8.4
Process completed with exit code 127.
string-extra PHP 8.4
Process completed with exit code 127.
twig-extra-bundle PHP 8.4
Process completed with exit code 127.
markdown-extra PHP 8.4
Process completed with exit code 127.