-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #459 from cakephp/psalm
Static analysis
- Loading branch information
Showing
31 changed files
with
198 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
parameters: | ||
level: 5 | ||
level: 6 | ||
checkMissingIterableValueType: false | ||
checkGenericClassInNonGenericObjectType: false | ||
autoload_files: | ||
- tests/bootstrap.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,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="3.11.2@d470903722cfcbc1cd04744c5491d3e6d13ec3d9"> | ||
<file src="src/CakeManager.php"> | ||
<ImplementedReturnTypeMismatch occurrences="1"> | ||
<code>array|string</code> | ||
</ImplementedReturnTypeMismatch> | ||
</file> | ||
<file src="src/Command/Phinx/Seed.php"> | ||
<PossiblyNullReference occurrences="1"> | ||
<code>setInput</code> | ||
</PossiblyNullReference> | ||
</file> | ||
<file src="src/Shell/Task/SimpleMigrationTask.php"> | ||
<PossiblyNullArgument occurrences="1"> | ||
<code>$name</code> | ||
</PossiblyNullArgument> | ||
</file> | ||
<file src="src/TableFinderTrait.php"> | ||
<InternalClass occurrences="1"> | ||
<code>new Filesystem()</code> | ||
</InternalClass> | ||
<InternalMethod occurrences="1"> | ||
<code>find</code> | ||
</InternalMethod> | ||
</file> | ||
<file src="src/Util/ColumnParser.php"> | ||
<PossiblyNullArgument occurrences="1"> | ||
<code>$fieldType</code> | ||
</PossiblyNullArgument> | ||
</file> | ||
<file src="src/Util/UtilTrait.php"> | ||
<InvalidReturnType occurrences="1"> | ||
<code>string|null</code> | ||
</InvalidReturnType> | ||
</file> | ||
</files> |
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,25 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
allowStringToStandInForClass="true" | ||
usePhpDocMethodsWithoutMagicCall="true" | ||
ignoreInternalFunctionFalseReturn="true" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | ||
errorBaseline="psalm-baseline.xml" | ||
autoloader="tests/bootstrap.php" | ||
> | ||
<projectFiles> | ||
<directory name="src"/> | ||
</projectFiles> | ||
|
||
<issueHandlers> | ||
<RedundantConditionGivenDocblockType errorLevel="suppress"/> | ||
<TypeCoercion errorLevel="suppress"/> | ||
<DocblockTypeContradiction errorLevel="suppress"/> | ||
<MissingClosureParamType errorLevel="suppress"/> | ||
<MissingClosureReturnType errorLevel="suppress"/> | ||
<PropertyNotSetInConstructor errorLevel="suppress"/> | ||
<UnresolvableInclude errorLevel="suppress"/> | ||
</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
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
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.