Skip to content

Fix code

Fix code #3066

Triggered via push November 29, 2024 20:18
Status Failure
Total duration 1m 1s
Artifacts

ci.yml

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

Annotations

9 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.
markdown-extra PHP 8.4
Process completed with exit code 1.