Skip to content

Commit

Permalink
Add UPGRADING-v6.md
Browse files Browse the repository at this point in the history
  • Loading branch information
klimick committed May 22, 2023
1 parent 28d4b0f commit b0f74d2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions UPGRADING-v6.md
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>
```

0 comments on commit b0f74d2

Please sign in to comment.