[Twig 4] Add PHPUnit as dev dependency #3036
ci.yml
on: pull_request
Matrix: tests
Matrix: PHPStan
Matrix: extension-tests
Matrix: integration-tests
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.
|