Skip to content

[Twig 4] Add PHPUnit as dev dependency #3027

[Twig 4] Add PHPUnit as dev dependency

[Twig 4] Add PHPUnit as dev dependency #3027

Triggered via pull request November 24, 2024 08:47
Status Failure
Total duration 33s
Artifacts

ci.yml

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

Annotations

13 errors
PHP 8.2
Process completed with exit code 1.
PHP 8.4
The job was canceled because "_8_2" failed.
PHP 8.4
The operation was canceled.
PHP 8.3
The job was canceled because "_8_2" failed.
PHP 8.3
The operation was canceled.
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.