PHPackages                             fp4php/psalm-toolkit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. fp4php/psalm-toolkit

ActiveLibrary

fp4php/psalm-toolkit
====================

Testing tool for psalm plugins

v3.6.1(3y ago)43.1k↓100%1MITPHPPHP ^8.0

Since Nov 22Pushed 3y ago2 watchersCompare

[ Source](https://github.com/fp4php/psalm-toolkit)[ Packagist](https://packagist.org/packages/fp4php/psalm-toolkit)[ RSS](/packages/fp4php-psalm-toolkit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (22)Used By (1)

Psalm toolkit
-------------

[](#psalm-toolkit)

Helpers for plugin authoring and static testing tool.

### Installation

[](#installation)

Package `fp4php/functional` must be installed manually.

```
$ composer require --dev fp4php/functional fp4php/psalm-toolkit
$ vendor/bin/psalm-plugin enable fp4php/psalm-toolkit
```

### Usage

[](#usage)

At the moment you can use two methods for static asserts:

- `seePsalmIssue`: Checks that a code block from the `haveCode` have specific issue.
- `seeReturnType`: Verifies a return type from the `haveCode` block.

Usage example below:

```
