forked from FirebirdSQL/php-firebird
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
executable file
·49 lines (39 loc) · 1.52 KB
/
phpstan.neon
File metadata and controls
executable file
·49 lines (39 loc) · 1.52 KB
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
parameters:
# Maximum analysis level (strictest)
level: 8
# Paths to analyze
paths:
- src/
# Stub files for C extension function signatures
stubFiles:
- phpstan/fbird.stub.php
- phpstan/firebird-event.stub.php
- stubs/firebird-classes.php
# Ensure PHPStan actually scans the stub file for symbol discovery.
# (Without this, extension functions may be resolved only via reflection,
# depending on whether the extension is loaded in the PHPStan runtime.)
scanFiles:
- phpstan/fbird.stub.php
- phpstan/firebird-event.stub.php
- stubs/firebird-classes.php
# Bootstrap files to define extension constants
bootstrapFiles:
- phpstan/fbird-bootstrap.php
# PHP version to analyze for
phpVersion: 80100
# Treat phpt files' PHP code specially (optional future)
# excludePaths:
# - tests/*.phpt
# Report unmatched ignores
reportUnmatchedIgnoredErrors: false
# Type coverage tracking
treatPhpDocTypesAsCertain: false
# Strict rules (level 8 enables most strict checks automatically)
checkUninitializedProperties: true
# Known false positives:
# pcntl_signal_get_handler() returns int(SIG_DFL/SIG_IGN) or callable, but PHPStan
# infers only callable(): mixed, making is_callable() appear always-true.
ignoreErrors:
-
message: '#Call to function is_callable\(\) with callable\(\): mixed will always evaluate to true#'
path: src/Firebird/PcntlEventPoller.php