File: phpstan.neon

package info (click to toggle)
php-nette-utils 4.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,496 kB
  • sloc: php: 4,346; xml: 9; makefile: 4
file content (50 lines) | stat: -rw-r--r-- 1,152 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
parameters:
	level: 8

	paths:
		- src

	excludePaths:
		- src/compatibility.php
		- src/Iterators/Mapper.php
		- src/Utils/ObjectHelpers.php

	bootstrapFiles:
		- tests/phpstan-bootstrap.php

	ignoreErrors:
		# Intentional design pattern: new static() for inheritance support in fluent interfaces
		-
			identifier: new.static
			paths:
				- src/Utils/ArrayHash.php
				- src/Utils/ArrayList.php
				- src/Utils/DateTime.php
				- src/Utils/Finder.php
				- src/Utils/Html.php
				- src/Utils/Image.php

		# Runtime validation: type narrowing checks that are necessary at runtime
		-
			identifier: function.alreadyNarrowedType
			paths:
				- src/Utils/ArrayHash.php
				- src/Utils/ArrayList.php
				- src/Utils/Strings.php

		# Array destructuring from getimagesize() which returns false (converted to null by falseToNull)
		-
			identifier: offsetAccess.nonArray
			paths:
				- src/Utils/Image.php

		# Works with arbitrary PHP callbacks, precise callable types not practical
		-
			identifier: missingType.callable
			paths:
				- src/Utils/Callback.php
				- src/Utils/Image.php
				- src/Utils/Strings.php

includes:
	- phpstan-baseline.neon