mirror of
https://github.com/archtechx/enums.git
synced 2025-12-12 12:34:04 +00:00
* Added "Invokable Cases" PHPStan extension This includes a PHPStan extension to add support for `InvokableCases` so that static analysis tools can understand the callable methods and their return types. The extension has been added in a way that will allow multiple extensions in the future if required, with a single include file that will import all extensions, or the option to include only specific extensions. * Added "Invokable Cases" PHPStan extension testing
29 lines
802 B
Text
29 lines
802 B
Text
includes:
|
|
- ./vendor/nunomaduro/larastan/extension.neon
|
|
- ./extension.neon
|
|
|
|
parameters:
|
|
paths:
|
|
- src
|
|
|
|
level: 8
|
|
|
|
universalObjectCratesClasses:
|
|
- Illuminate\Routing\Route
|
|
|
|
ignoreErrors:
|
|
- '#Access to an undefined static property static\(ArchTech\\Enums\\Meta\\MetaProperty\)\:\:\$method#'
|
|
- '#has invalid type ArchTech\\Enums\\Metadata#'
|
|
- '#has invalid type Enum#'
|
|
- '#on an unknown class Enum#'
|
|
# -
|
|
# message: '#Offset (.*?) does not exist on array\|null#'
|
|
# paths:
|
|
# - tests/*
|
|
# -
|
|
# message: '#expects resource, resource\|false given#'
|
|
# paths:
|
|
# - tests/*
|
|
# - '#should return \$this#'
|
|
|
|
checkMissingIterableValueType: false
|