File: phpstan-baseline.neon

package info (click to toggle)
php-twig 3.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,940 kB
  • sloc: php: 23,320; makefile: 110; sh: 43
file content (25 lines) | stat: -rw-r--r-- 959 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
parameters:
	ignoreErrors:
		- # The method is dynamically generated by the CheckSecurityNode
			message: '#^Call to an undefined method Twig\\Template\:\:checkSecurity\(\)\.$#'
			identifier: method.notFound
			count: 1
			path: src/Extension/CoreExtension.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