Merge pull request #221 from mzur/patch-1

Fix Psalm v4.21 compatibility
This commit is contained in:
feek 2022-02-22 17:16:18 -05:00 committed by GitHub
commit f07dce6af1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 25 additions and 23 deletions

View File

@ -1,6 +1,7 @@
<?xml version="1.0"?>
<psalm
totallyTyped="false"
errorLevel="2"
reportMixedIssues="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config"

View File

@ -52,6 +52,7 @@ final class ApplicationProvider
}
if (file_exists($applicationPath = __DIR__ . '/../../../../bootstrap/app.php')) { // Applications
/** @psalm-suppress MissingFile file is checked for existence */
$app = require $applicationPath;
} elseif (file_exists($applicationPath = getcwd() . '/bootstrap/app.php')) { // Local Dev
$app = require $applicationPath;

View File

@ -5,7 +5,7 @@ Feature: abort_if()
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Collection types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Console Command types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Container
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: DB facade alias
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="false">
<psalm errorLevel="2" reportMixedIssues="false">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Database Builder types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Eloquent Builder types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Eloquent Collection types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Eloquent Model property types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true" usePhpDocPropertiesWithoutMagicCall="true">
<psalm errorLevel="1" usePhpDocPropertiesWithoutMagicCall="true">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Eloquent Model types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Eloquent Relation types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: ExceptionHandler
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: factory()
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -3,7 +3,7 @@ Feature: helpers
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Http FormRequest types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Http Resource types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -6,7 +6,7 @@ Feature: Notification types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Path helpers
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: redirect()
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: Request types
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="false">
<psalm errorLevel="2" reportMixedIssues="false">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: response()
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>

View File

@ -5,7 +5,7 @@ Feature: url()
Given I have the following config
"""
<?xml version="1.0"?>
<psalm totallyTyped="true">
<psalm errorLevel="1">
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>