-
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.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 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
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> | ||
``` |