Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 672 Bytes

UPGRADING-v6.md

File metadata and controls

32 lines (24 loc) · 672 Bytes

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:
composer remove fp4php/psalm-toolkit
  1. Install new psalm plugin:
composer require --dev fp4php/functional-psalm-plugin
  1. Update psalm.xml:
<?xml version="1.0"?>
<psalm ...>
    ...
    <plugins>
-        <pluginClass class="Fp\Psalm\FunctionalPlugin"/>
-        <pluginClass class="Fp\PsalmToolkit\Toolkit\Plugin"/>
+        <pluginClass class="Fp\PsalmPlugin\FunctionalPlugin"/>
    </plugins>
</psalm>