Skip to content

Instantly share code, notes, and snippets.

@jewei
Created May 21, 2018 10:39
Show Gist options
  • Save jewei/83da446afaa8c62f0487335528e8dcef to your computer and use it in GitHub Desktop.
Save jewei/83da446afaa8c62f0487335528e8dcef to your computer and use it in GitHub Desktop.
psalm.xml for Laravel
<?xml version="1.0"?>
<psalm
totallyTyped="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"
>
<projectFiles>
<directory name="app" />
</projectFiles>
<issueHandlers>
<LessSpecificReturnStatement>
<errorLevel type="suppress">
<file name="app/Exceptions/Handler.php" />
</errorLevel>
</LessSpecificReturnStatement>
<MixedInferredReturnType>
<errorLevel type="suppress">
<file name="app/Http/Controllers/Auth/RegisterController.php" />
</errorLevel>
</MixedInferredReturnType>
<MixedMethodCall>
<errorLevel type="suppress">
<file name="app/Providers/RouteServiceProvider.php" />
</errorLevel>
</MixedMethodCall>
<MixedReturnStatement>
<errorLevel type="suppress">
<file name="app/Http/Controllers/Auth/RegisterController.php" />
</errorLevel>
</MixedReturnStatement>
<MoreSpecificReturnType>
<errorLevel type="suppress">
<file name="app/Exceptions/Handler.php" />
</errorLevel>
</MoreSpecificReturnType>
<PropertyNotSetInConstructor>
<errorLevel type="suppress">
<file name="app/Console/Kernel.php" />
<file name="app/Http/Middleware/TrustProxies.php" />
<file name="app/User.php" />
</errorLevel>
</PropertyNotSetInConstructor>
<UnresolvableInclude>
<errorLevel type="suppress">
<file name="app/Console/Kernel.php" />
<file name="app/Providers/BroadcastServiceProvider.php" />
</errorLevel>
</UnresolvableInclude>
</issueHandlers>
</psalm>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment