- Issue created by @brandonlira
While running PHPStan with level max (or next minor), the following warnings were found in the config_filter module:
Line 47 - src/Config/FilteredStorage.php
Instanceof between Drupal\config_filter\Config\StorageFilterInterface and itself will always evaluate to true.
šŖŖ instanceof.alwaysTrue
š” This comes from a PHPDoc. To silence, set treatPhpDocTypesAsCertain: false in phpstan.neon.
Line 409 - src/Tests/FilteredStorageTest.php
Call to method PHPUnit\Framework\Assert::assertTrue() with true will always evaluate to true.
šŖŖ method.alreadyNarrowedType
These are not causing any runtime errors but may indicate unnecessary or redundant logic and could be cleaned up for better code quality and static analysis results.
FilteredStorage.php:
FilteredStorageTest.php:
None.
None.
None.
Active
2.0
Code
It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.