github carthage-software/mago 0.1.2
Mago 0.1.2

latest releases: 1.0.0-beta.10, 1.0.0-beta.9, 1.0.0-beta.8...
7 months ago

Mago 0.1.2 introduces a new linter rule to enhance your PHPUnit test quality by detecting redundant instanceof assertions.


🆕 New Feature: php-unit/redundant-instanceof

This release adds the php-unit/redundant-instanceof rule to the linter, helping you identify unnecessary instanceof assertions in your test methods.

An instanceof assertion is considered redundant if the subject is always an instance of the class being checked. This rule improves test clarity by highlighting and eliminating assertions that always pass or fail.

To view detailed documentation and examples for this rule, use:

mago lint --explain php-unit/redundant-instance-of

Don't miss a new mago release

NewReleases is sending notifications on new releases.