-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
43 lines (42 loc) · 1.95 KB
/
Copy pathphpstan.neon
File metadata and controls
43 lines (42 loc) · 1.95 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
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
level: 5
treatPhpDocTypesAsCertain: false
paths:
- src
excludePaths:
- vendor
- tests
- src/Util/Tty/Kernel32.php
- src/Util/Tty/Kernel32Interface.php
- src/Util/Tty/WindowsBackend.php
ignoreErrors:
-
identifier: trait.unused
path: src/Concerns/Mutable.php
# FFI::scope()/FFI::cdef() synthesise the declared C functions as
# METHODS on the \FFI object at runtime, so the compiled ext/ffi
# class the analyser reflects carries no open()/close(). PosixBackend's
# controlling-terminal arm calls exactly those two on candy-pty's
# Libc::lib() handle, whose cdef declares `int open(const char*, int)`
# and `int close(int)` -- a genuine false positive, not a typing defect.
# A stubFile was tried first and is a no-op here: with ext-ffi LOADED
# (every CI lane, and any host that can run this code at all), PHPStan
# 2.2.12 resolves members from the runtime class, not the stub --
# MEASURED. Narrowed to these two symbol names so any NEW method this
# file reaches for without a runtime guarantee still reds.
-
identifier: method.notFound
path: src/Util/Tty/PosixBackend.php
messages:
- '#^Call to an undefined method FFI::(open|close)\(\)\.$#'
# Width::isEmoji() lost its only two callers when E73 removed
# compute()'s ZWJ state machine. It is kept as a documented seam
# (rule: dormant code is wired or documented, never deleted) and
# deliberately NOT wired into graphemeWidth(), because its ranges are
# majority-NARROW by East_Asian_Width. The reasoning lives on the
# method's docblock; this entry is what keeps CI's phpstan job green.
-
identifier: method.unused
path: src/Util/Width.php