-
-
Notifications
You must be signed in to change notification settings - Fork 6
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 #12 from jslmorrison/psalm-integration
Psalm integration
- Loading branch information
Showing
11 changed files
with
2,754 additions
and
971 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
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
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,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="4.22.0@fc2c6ab4d5fa5d644d8617089f012f3bb84b8703"> | ||
<file src="src/LaminasAuthentication.php"> | ||
<MixedArgument occurrences="1"> | ||
<code>$this->config['redirect']</code> | ||
</MixedArgument> | ||
<MixedInferredReturnType occurrences="1"> | ||
<code>UserInterface</code> | ||
</MixedInferredReturnType> | ||
<MixedReturnStatement occurrences="1"> | ||
<code>$userFactory($identity, $roles, $details)</code> | ||
</MixedReturnStatement> | ||
<PossiblyNullReference occurrences="2"> | ||
<code>setCredential</code> | ||
<code>setIdentity</code> | ||
</PossiblyNullReference> | ||
</file> | ||
<file src="src/LaminasAuthenticationFactory.php"> | ||
<MixedArgument occurrences="2"> | ||
<code>$auth</code> | ||
<code>$container->get(UserInterface::class)</code> | ||
</MixedArgument> | ||
<MixedAssignment occurrences="1"> | ||
<code>$auth</code> | ||
</MixedAssignment> | ||
<PossiblyInvalidArgument occurrences="1"> | ||
<code>$config</code> | ||
</PossiblyInvalidArgument> | ||
</file> | ||
<file src="test/LaminasAuthenticationTest.php"> | ||
<MixedArgumentTypeCoercion occurrences="8"> | ||
<code>$this->responseFactory</code> | ||
<code>$this->responseFactory</code> | ||
<code>$this->responseFactory</code> | ||
<code>$this->responseFactory</code> | ||
<code>$this->responseFactory</code> | ||
<code>$this->responseFactory</code> | ||
<code>$this->responseFactory</code> | ||
<code>$this->responseFactory</code> | ||
</MixedArgumentTypeCoercion> | ||
</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,56 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="1" | ||
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" | ||
> | ||
<projectFiles> | ||
<directory name="src"/> | ||
<directory name="test"/> | ||
<ignoreFiles> | ||
<directory name="vendor"/> | ||
</ignoreFiles> | ||
</projectFiles> | ||
|
||
<issueHandlers> | ||
<DeprecatedClass> | ||
<errorLevel type="suppress"> | ||
<referencedClass name="Mezzio\Authentication\LaminasAuthentication\Response\CallableResponseFactoryDecorator"/> | ||
</errorLevel> | ||
</DeprecatedClass> | ||
<DeprecatedTrait> | ||
<errorLevel type="suppress"> | ||
<file name="src/LaminasAuthenticationFactory.php"/> | ||
</errorLevel> | ||
</DeprecatedTrait> | ||
<InternalMethod> | ||
<errorLevel type="suppress"> | ||
<referencedMethod name="PHPUnit\Framework\MockObject\Builder\InvocationMocker::method"/> | ||
</errorLevel> | ||
<errorLevel type="suppress"> | ||
<referencedMethod name="PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturn"/> | ||
</errorLevel> | ||
<errorLevel type="suppress"> | ||
<referencedMethod name="PHPUnit\Framework\MockObject\Builder\InvocationMocker::with"/> | ||
</errorLevel> | ||
</InternalMethod> | ||
<UndefinedClass> | ||
<errorLevel type="suppress"> | ||
<referencedClass name="Mezzio\Container\ResponseFactoryFactory"/> | ||
</errorLevel> | ||
</UndefinedClass> | ||
<UndefinedInterfaceMethod> | ||
<errorLevel type="suppress"> | ||
<referencedMethod name="Laminas\Authentication\Adapter\AdapterInterface::setCredential"/> | ||
</errorLevel> | ||
<errorLevel type="suppress"> | ||
<referencedMethod name="Laminas\Authentication\Adapter\AdapterInterface::setIdentity"/> | ||
</errorLevel> | ||
</UndefinedInterfaceMethod> | ||
</issueHandlers> | ||
<plugins> | ||
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/> | ||
</plugins> | ||
</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