PHPackages                             backendtea/useless-match - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. backendtea/useless-match

ActivePhpstan-extension[Utility &amp; Helpers](/categories/utility)

backendtea/useless-match
========================

1.0.0(4mo ago)10MITPHPPHP ^8.4

Since Dec 30Pushed 4mo agoCompare

[ Source](https://github.com/BackEndTea/useless-match)[ Packagist](https://packagist.org/packages/backendtea/useless-match)[ RSS](/packages/backendtea-useless-match/feed)WikiDiscussions main Synced 1mo ago

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

No useless match
================

[](#no-useless-match)

A PHPStan rule to report match expressions with 2 arms, one of which is a default. As these could be an if/else instead.

Installation
------------

[](#installation)

```
$ composer require backendtea/useless-match
```

If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!

 Manual installationIf you don't want to use `phpstan/extension-installer`, include rules.neon in your project's PHPStan config:

```
includes:
    - vendor/phpstan/backendtea/useless-match/rules.neon

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance76

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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

131d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7472777959978078c70a919d0c71fef49501a5337ce57889a9dd9a7d830e41f8?d=identicon)[BackEndTea](/maintainers/BackEndTea)

---

Top Contributors

[![BackEndTea](https://avatars.githubusercontent.com/u/14289961?v=4)](https://github.com/BackEndTea "BackEndTea (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/backendtea-useless-match/health.svg)

```
[![Health](https://phpackages.com/badges/backendtea-useless-match/health.svg)](https://phpackages.com/packages/backendtea-useless-match)
```

###  Alternatives

[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87578.8k35](/packages/ticketswap-phpstan-error-formatter)[slam/phpstan-extensions

Slam extension of phpstan

702.5M74](/packages/slam-phpstan-extensions)[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[johnbillion/wp-compat

PHPStan extension to help verify that your PHP code is compatible with a given version of WordPress

24115.0k10](/packages/johnbillion-wp-compat)

PHPackages © 2026

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