-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
260 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
includes: | ||
- phpstan.neon.dist | ||
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-strict-rules/rules.neon | ||
- /tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan-phpunit/extension.neon | ||
parameters: | ||
checkMissingIterableValueType: false | ||
checkGenericClassInNonGenericObjectType: false | ||
tmpDir: %currentWorkingDirectory%/var/phpstan | ||
level: max | ||
paths: | ||
- ./ | ||
excludePaths: | ||
- var/ | ||
- vendor/ | ||
- Test/Model/ProductWithAttributes.php | ||
|
||
# false positive: PHPStan loads the first file from this one (?) | ||
- Test/Functional/FunctionalTestCase.php | ||
ignoreErrors: | ||
# PHPStan does not process version guards correctly | ||
- '#Call to an undefined method.*getAttributes#' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0"?> | ||
<psalm xmlns="https://getpsalm.org/schema/config" | ||
cacheDirectory="var/psalm" | ||
errorLevel="1" | ||
findUnusedVariablesAndParams="true"> | ||
<projectFiles> | ||
<directory name="."/> | ||
<ignoreFiles> | ||
<directory name="var/"/> | ||
<directory name="vendor/"/> | ||
</ignoreFiles> | ||
</projectFiles> | ||
|
||
<issueHandlers> | ||
<!-- TODO: false positive --> | ||
<MixedArgument> | ||
<errorLevel type="suppress"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php"/> | ||
</errorLevel> | ||
</MixedArgument> | ||
<MixedInferredReturnType> | ||
<errorLevel type="suppress"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php"/> | ||
</errorLevel> | ||
</MixedInferredReturnType> | ||
<MixedMethodCall> | ||
<errorLevel type="suppress"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php"/> | ||
</errorLevel> | ||
</MixedMethodCall> | ||
<MixedReturnStatement> | ||
<errorLevel type="suppress"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php"/> | ||
</errorLevel> | ||
</MixedReturnStatement> | ||
<UndefinedMethod> | ||
<errorLevel type="suppress"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php"/> | ||
</errorLevel> | ||
</UndefinedMethod> | ||
<!-- /TODO: false positive --> | ||
|
||
<MissingConstructor> | ||
<errorLevel type="info"> | ||
<directory name="Annotation/" /> | ||
<directory name="Test/" /> | ||
</errorLevel> | ||
</MissingConstructor> | ||
<RedundantCondition> | ||
<errorLevel type="info"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php" /> | ||
</errorLevel> | ||
</RedundantCondition> | ||
<PropertyNotSetInConstructor> | ||
<errorLevel type="info"> | ||
<directory name="Test/" /> | ||
</errorLevel> | ||
</PropertyNotSetInConstructor> | ||
</issueHandlers> | ||
</psalm> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
includes: | ||
- phpstan.neon.dist | ||
parameters: | ||
ignoreErrors: | ||
# PHPStan does not process version guards correctly | ||
- '#Call to an undefined method.*getAttributes#' | ||
excludePaths: | ||
- Test/Model/ProductWithAttributes.php |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0"?> | ||
<psalm xmlns="https://getpsalm.org/schema/config" | ||
cacheDirectory="var/psalm" | ||
errorLevel="1" | ||
findUnusedVariablesAndParams="true"> | ||
<projectFiles> | ||
<directory name="."/> | ||
<ignoreFiles> | ||
<directory name="var/"/> | ||
<directory name="vendor/"/> | ||
</ignoreFiles> | ||
</projectFiles> | ||
|
||
<issueHandlers> | ||
<!-- TODO: false positive --> | ||
<MixedArgument> | ||
<errorLevel type="suppress"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php"/> | ||
</errorLevel> | ||
</MixedArgument> | ||
<MixedInferredReturnType> | ||
<errorLevel type="suppress"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php"/> | ||
</errorLevel> | ||
</MixedInferredReturnType> | ||
<MixedMethodCall> | ||
<errorLevel type="suppress"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php"/> | ||
</errorLevel> | ||
</MixedMethodCall> | ||
<MixedReturnStatement> | ||
<errorLevel type="suppress"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php"/> | ||
</errorLevel> | ||
</MixedReturnStatement> | ||
<UndefinedMethod> | ||
<errorLevel type="suppress"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php"/> | ||
</errorLevel> | ||
</UndefinedMethod> | ||
<!-- /TODO: false positive --> | ||
|
||
<MissingConstructor> | ||
<errorLevel type="info"> | ||
<directory name="Annotation/" /> | ||
<directory name="Test/" /> | ||
</errorLevel> | ||
</MissingConstructor> | ||
<RedundantCondition> | ||
<errorLevel type="info"> | ||
<file name="Metadata/Annotation/AnnotationDriver.php" /> | ||
</errorLevel> | ||
</RedundantCondition> | ||
<PropertyNotSetInConstructor> | ||
<errorLevel type="info"> | ||
<directory name="Test/" /> | ||
</errorLevel> | ||
</PropertyNotSetInConstructor> | ||
</issueHandlers> | ||
</psalm> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
|
||
/** | ||
* @Annotation | ||
* @Target({"PROPERTY"}) | ||
*/ | ||
final class ArrayReference | ||
{ | ||
|
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
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
Oops, something went wrong.