PHPackages                             h4ck3r31/psalm-issue-filter-plugin - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. h4ck3r31/psalm-issue-filter-plugin

ActivePsalm-plugin[Testing &amp; Quality](/categories/testing)

h4ck3r31/psalm-issue-filter-plugin
==================================

Allows to filter/skip code issues based on code snippets within PsalmPHP

v0.3.0(3y ago)0498MITPHP

Since Sep 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hofhaeckerei/h4ck3r31-psalm-issue-filter-plugin)[ Packagist](https://packagist.org/packages/h4ck3r31/psalm-issue-filter-plugin)[ RSS](/packages/h4ck3r31-psalm-issue-filter-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Psalm Issue Filter Plugin
=========================

[](#psalm-issue-filter-plugin)

Allows to filter/skip code issues based on code snippets. The configuration example below skips `PossiblyUndefinedStringArrayOffset` or `PossiblyUndefinedIntArrayOffset` that might occur in project scenarios like:

```
class Subject
{
    /**
     * @return SomeService
     */
    protected function getSomeService()
    {
        // there's no guarantee this service instance is given
        // however, it particular frameworks it might be like that
        // -> this plugin helps to skip these boilerplate issues
        return $GLOBALS['SOME_SERVICE'];
    }
}
```

Configuration Directives
------------------------

[](#configuration-directives)

- `section` used for logical grouping of `issue` and `filter` items
- `issue` selecting issue class names, `filter` items shall be applied to
    - `class` mandatory, using Psalm's issue class name
- `filter` defining matching strategies concerning filtering
    - `type` matching strategy - either `str_starts_with` or `preg_match`
    - `value` the corresponding payload to be matches (adjust for actual strategy)
    - `result` (default `false`) which is the same as in Psalm's `BeforeAddIssueInterface::beforeAddIssue`
        - `true` stops event handling &amp; keeps issue
        - `false` stops event handling &amp; ignores issue

Example
-------

[](#example)

*in `plugin` section of `psalm.xml`*

```

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1347d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/402145?v=4)[Oliver Hader](/maintainers/ohader)[@ohader](https://github.com/ohader)

---

Top Contributors

[![ohader](https://avatars.githubusercontent.com/u/402145?v=4)](https://github.com/ohader "ohader (1 commits)")

### Embed Badge

![Health badge](/badges/h4ck3r31-psalm-issue-filter-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/h4ck3r31-psalm-issue-filter-plugin/health.svg)](https://phpackages.com/packages/h4ck3r31-psalm-issue-filter-plugin)
```

###  Alternatives

[psalm/plugin-phpunit

Psalm plugin for PHPUnit

7622.9M1.1k](/packages/psalm-plugin-phpunit)[roave/infection-static-analysis-plugin

Static analysis on top of mutation testing - prevents escaped mutants from being invalid according to static analysis

1314.2M265](/packages/roave-infection-static-analysis-plugin)[psalm/plugin-mockery

Psalm plugin for Mockery

102.6M53](/packages/psalm-plugin-mockery)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
