-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was prompted by upgrading PHPStan from 1.10.62 to 1.12.5: - Remove redundant checks thanks to better `preg_match_all` typing. - Assert that `preg_match` matched successfully before using the `$match` result in a test (it would be an empty array when the match failed). - Replace deprecated `checkMissingIterableValueType` by `ignoreErrors` with an identifier. >⚠️ You're using a deprecated config option checkMissingIterableValueType⚠️ ️ > > It's strongly recommended to remove it from your configuration file > and add the missing array typehints. > > If you want to continue ignoring missing typehints from arrays, > add missingType.iterableValue error identifier to your ignoreErrors: > > parameters: > ignoreErrors: > - > identifier: missingType.iterableValue - Bump minimum PHPStan version since we now rely on identifiers. - Remove deprecated `checkGenericClassInNonGenericObjectType`, it does not look like it is actually needed any more. >⚠️ You're using a deprecated config option checkGenericClassInNonGenericObjectType⚠️ ️ > > It's strongly recommended to remove it from your configuration file > and add the missing generic typehints. > > If you want to continue ignoring missing typehints from generics, > add missingType.generics error identifier to your ignoreErrors: > > parameters: > ignoreErrors: > - > identifier: missingType.generics - Assert for more precise `substr` return type on PHP < 8.0.
- Loading branch information
Showing
5 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters