mirror of
https://github.com/archtechx/enums.git
synced 2025-12-12 12:54:04 +00:00
* Add .idea folder to .gitignore * Remove useless concatenation * Add phpunit cache directory to .gitignore * Use iterable type instead of unnecessary checks * Remove unnecessary null coalescing If the return value is `null`, it will return `null` anyway. If the method doesn't exist, it will throw an `Error` because of the undefined method. * Add typehint * Merge meta properties in one go instead of in a loop * Simplify control flow * Use non-deprecated phpstan configuration value * Add missing types * Fix style with php-cs-fixer * Add tests that satisfy the ArrayIterator branch * Use is() for comparison in in() * from(int|string), tryFrom(int|string) --------- Co-authored-by: Samuel Štancl <samuel@archte.ch>
28 lines
806 B
Text
28 lines
806 B
Text
includes:
|
|
- ./vendor/larastan/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#'
|
|
- identifier: missingType.iterableValue
|