schneespur/vendor/psy/psysh/vendor-bin/phpstan/ignore.neon
Michael ee3dbba6cc Initial release v1.0.0
Schneespur — Open-source winter service documentation software (PWA + Admin).
GPS tracking via OwnTracks, weather data, photo evidence, and legally
compliant service records for winter maintenance operators.

License: AGPL-3.0-or-later
2026-05-17 13:33:51 +00:00

77 lines
4.4 KiB
Text

parameters:
ignoreErrors:
# PSR-3 is an optional dependency (psr/log is not required)
- "#Parameter \\$[a-z]+ of method .* has invalid type Psr\\\\Log\\\\LoggerInterface\\.#"
# Runkit extension is optional, so we shouldn't warn about its functions/constants
- message: "#^Function runkit[a-zA-Z0-9_]+ not found\\.$#"
paths:
- ../../src/ExecutionLoop/RunkitReloader.php
- message: "#^Constant RUNKIT_[a-zA-Z0-9_]+ not found\\.$#"
paths:
- ../../src/ExecutionLoop/RunkitReloader.php
- message: "#^Unary operation .* on mixed results in an error\\.$#"
paths:
- ../../src/ExecutionLoop/RunkitReloader.php
# Uopz extension is optional, so we shouldn't warn about its functions
- message: "#^Function uopz_[a-zA-Z0-9_]+ not found\\.$#"
paths:
- ../../src/ExecutionLoop/UopzReloader.php
- ../../src/ExecutionLoop/UopzReloaderVisitor.php
reportUnmatched: false
# UopzReloader tests use dynamically created classes/functions via require
- message: "#unknown class (Uopz|\\\\Uopz)#i"
paths:
- ../../test/ExecutionLoop/UopzReloaderTest.php
- message: "#class (Uopz|\\\\Uopz)[a-zA-Z\\\\]* not found#i"
paths:
- ../../test/ExecutionLoop/UopzReloaderTest.php
- message: "#^Function (uopz|Uopz|\\\\uopz|\\\\Uopz|UopzTestNs\\\\)[a-zA-Z_\\\\]* not found\\.$#"
paths:
- ../../test/ExecutionLoop/UopzReloaderTest.php
- message: "#Constant (Uopz|\\\\Uopz)[a-zA-Z_\\\\:]* not found#i"
paths:
- ../../test/ExecutionLoop/UopzReloaderTest.php
# PHP8 classes are used only after explicit check for runtime version, so let's ignore it
- message: "#^Class (UnitEnum|ReflectionUnionType)+ not found\\.$#"
paths:
- ../../src/ExecutionLoop/ProcessForker.php
# PHP8.0 introduced second argument for
- "#^Class IteratorIterator constructor invoked with 2 parameters, 1 required\\.$#"
# Backwards-compatiblity with PHP-Parser 4.x
- "#^Access to undefined constant PhpParser\\\\ParserFactory::ONLY_PHP7\\.$#"
# Symfony Console method compatibility - wide version support (3.4 - 7.x)
- "#^Call to an undefined method Symfony\\\\Component\\\\Console\\\\Helper\\\\TableStyle::setVerticalBorderChar\\(\\)\\.$#"
- "#^Call to an undefined method Symfony\\\\Component\\\\Console\\\\Helper\\\\TableStyle::setHorizontalBorderChar\\(\\)\\.$#"
- "#^Call to an undefined method Symfony\\\\Component\\\\Console\\\\Helper\\\\TableStyle::setCrossingChar\\(\\)\\.$#"
- "#^Call to an undefined static method Symfony\\\\Component\\\\Console\\\\Application::addCommand\\(\\)\\.$#"
# PHP-Parser method compatibility: wide version support (4.x - 5.x)
- "#^Call to an undefined method PhpParser\\\\ParserFactory::create\\(\\)\\.$#"
# PHP-Parser property access: backwards compatibility with 4.x (uses ->parts fallback via getParts() method)
- message: "#^Access to an undefined property PhpParser\\\\Node\\\\Name::\\$parts\\.$#"
paths:
- ../../src/CodeCleaner.php
- ../../src/CodeCleaner/ImplicitUsePass.php
- ../../src/CodeCleaner/NamespaceAwarePass.php
- ../../src/CodeCleaner/NamespacePass.php
- ../../src/CodeCleaner/ValidConstructorPass.php
# PHP-Parser property access: protected by isCallNode() guard in FunctionReturnInWriteContextPass
- message: "#^Access to an undefined property PhpParser\\\\Node::\\$args\\.$#"
paths:
- ../../src/CodeCleaner/FunctionReturnInWriteContextPass.php
- ../../src/CodeCleaner/PassableByReferencePass.php
# PHP-Parser property access: protected by isRequireNode() instanceof check in RequirePass
- message: "#^Access to an undefined property PhpParser\\\\Node::\\$expr\\.$#"
paths:
- ../../src/CodeCleaner/RequirePass.php
# PHP-Parser property access: protected by instanceof checks in ValidConstructorPass
- message: "#^Access to an undefined property PhpParser\\\\Node::\\$name\\.$#"
paths:
- ../../src/CodeCleaner/ValidConstructorPass.php
# Hoa library errors: legacy code not maintained by PsySH
- message: "#.*#"
paths:
- ../../src/Readline/Hoa/ConsoleWindow.php
- ../../src/Readline/Hoa/FileGeneric.php
- ../../src/Readline/Hoa/FileLinkRead.php
- ../../src/Readline/Hoa/IteratorRecursiveDirectory.php
- ../../src/Readline/Hoa/Protocol.php