someniatko/result-type-psalm-plugin

Psalm plugin for someniatko/result-type library

1.0.0 2023-06-20 11:04 UTC

This package is auto-updated.

Last update: 2024-02-20 12:42:34 UTC


README

Provides more precise type support for Result::all() of someniatko/result-type lib.

Supports Psalm 5 and PHP 7.4+.

Installation

composer require --dev someniatko/result-type-psalm-plugin

Then add to your psalm.xml:

<psalm>
    <!-- other stuff -->
    <plugins>
        <!-- other plugins -->
        <pluginClass class="Someniatko\ResultTypePsalmPlugin\Plugin"/>
    </plugins>
</psalm>