Files
Twig/phpstan-baseline.neon
T

33 lines
1.3 KiB
Plaintext

parameters:
ignoreErrors:
- # The "$tests" parameter is documented now and will be part of the signature in 4.0
message: '#^PHPDoc tag @param references unknown parameter\: \$tests$#'
identifier: parameter.notFound
count: 1
path: src/Sandbox/SecurityPolicyInterface.php
- # The "$tests" argument will be part of the signature in 4.0; 3-parameter implementations are detected and called with 3 arguments
message: '#^Method Twig\\Sandbox\\SecurityPolicyInterface\:\:checkSecurity\(\) invoked with 4 parameters, 3 required\.$#'
identifier: arguments.count
count: 1
path: src/Sandbox/SecurityChecker.php
- # 2 parameters will be required
message: '#^Method Twig\\Node\\IncludeNode\:\:addGetTemplate\(\) invoked with 2 parameters, 1 required\.$#'
identifier: arguments.count
count: 1
path: src/Node/IncludeNode.php
- # int|string will be supported in 4.x
message: '#^PHPDoc tag @param for parameter $name with type int|string is not subtype of native type string\.$#'
identifier: parameter.phpDocType
count: 5
path: src/Node/Node.php
- # Adding 0 to the string representation of a number is valid and what we want here
message: '#^Binary operation "\+" between 0 and string results in an error\.$#'
identifier: binaryOp.invalid
count: 1
path: src/Lexer.php