-
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 #51 from fp4php/psalm-v5
Psalm v5
- Loading branch information
Showing
170 changed files
with
960 additions
and
7,066 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## Update psalm to v5 | ||
|
||
Since fp4php/functional v6 Psalm integration ships as separate package. | ||
Including the Psalm integration in the main fp4php/functional repository was a mistake. | ||
|
||
For migration: | ||
|
||
1. Remove old toolkit: | ||
|
||
```shell | ||
composer remove fp4php/psalm-toolkit | ||
``` | ||
|
||
2. Install new psalm plugin: | ||
|
||
```shell | ||
composer require --dev fp4php/functional-psalm-plugin | ||
``` | ||
|
||
3. Update psalm.xml: | ||
|
||
```diff | ||
<?xml version="1.0"?> | ||
<psalm ...> | ||
... | ||
<plugins> | ||
- <pluginClass class="Fp\Psalm\FunctionalPlugin"/> | ||
- <pluginClass class="Fp\PsalmToolkit\Toolkit\Plugin"/> | ||
+ <pluginClass class="Fp\PsalmPlugin\FunctionalPlugin"/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,27 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="1" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
findUnusedPsalmSuppress="true" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | ||
> | ||
<psalm errorLevel="1" | ||
findUnusedBaselineEntry="false" | ||
findUnusedCode="false" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
findUnusedPsalmSuppress="true" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"> | ||
<projectFiles> | ||
<directory name="src"/> | ||
<directory name="tests"/> | ||
<ignoreFiles> | ||
<directory name="vendor"/> | ||
</ignoreFiles> | ||
</projectFiles> | ||
<plugins> | ||
<pluginClass class="Fp\Psalm\FunctionalPlugin"/> | ||
<pluginClass class="Fp\PsalmToolkit\Toolkit\Plugin"/> | ||
</plugins> | ||
<issueHandlers> | ||
<Trace errorLevel="error"/> | ||
<DeprecatedMethod errorLevel="suppress"> | ||
<errorLevel type="suppress"> | ||
<directory name="tests"/> | ||
</errorLevel> | ||
</DeprecatedMethod> | ||
<UnusedVariable errorLevel="suppress"> | ||
<errorLevel type="suppress"> | ||
<directory name="src/Fp/Functions"/> | ||
</errorLevel> | ||
</UnusedVariable> | ||
<DuplicateFunction errorLevel="suppress"> | ||
<errorLevel type="suppress"> | ||
<directory name="src/Fp/Functions"/> | ||
</errorLevel> | ||
</DuplicateFunction> | ||
<PropertyNotSetInConstructor errorLevel="suppress"> | ||
<errorLevel type="suppress"> | ||
<directory name="tests"/> | ||
</errorLevel> | ||
</PropertyNotSetInConstructor> | ||
<DuplicateClass errorLevel="suppress"> | ||
<errorLevel type="suppress"> | ||
<directory name="src/Fp/Functional"/> | ||
</errorLevel> | ||
</DuplicateClass> | ||
<InternalMethod errorLevel="suppress"> | ||
<errorLevel type="suppress"> | ||
<directory name="src/Fp/Psalm"/> | ||
</errorLevel> | ||
</InternalMethod> | ||
<InternalClass errorLevel="suppress"> | ||
<errorLevel type="suppress"> | ||
<directory name="src/Fp/Psalm"/> | ||
</errorLevel> | ||
</InternalClass> | ||
<InternalProperty errorLevel="suppress"> | ||
<errorLevel type="suppress"> | ||
<directory name="src/Fp/Psalm"/> | ||
</errorLevel> | ||
</InternalProperty> | ||
<UnusedClosureParam errorLevel="suppress"/> | ||
<UnusedMethodCall errorLevel="suppress"> | ||
<errorLevel type="suppress"> | ||
<directory name="tests"/> | ||
</errorLevel> | ||
</UnusedMethodCall> | ||
</issueHandlers> | ||
<plugins> | ||
<pluginClass class="Fp\PsalmPlugin\FunctionalPlugin"/> | ||
</plugins> | ||
</psalm> |
Oops, something went wrong.