Replace deprecated totallyTyped attribute

totallyTyped was deprecated in Psalm v4.21.0 [1].

totallyTyped="true" is equivalent to errorLevel="1" and
totallyTyped="false" is equivalent to errorLevel="2" plus
reportMixedIssues="false" [2].

[1] https://github.com/vimeo/psalm/releases/tag/4.21.0
[2] https://psalm.dev/docs/running_psalm/configuration/#totallytyped
This commit is contained in:
Martin Zurowietz 2022-02-21 10:15:13 +01:00
parent 7123b7821c
commit f6193ad5cb
23 changed files with 24 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

@ -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>