DX: Fix Mess Detector violations #9594
Annotations
1 warning
PHP 8.3 mutation tests:
src/Tokenizer/Analyzer/AttributeAnalyzer.php#L106
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
/**
* Find one element that starts with #[ and ends with ] and the attributes inside.
*/
- public static function collectOne(Tokens $tokens, int $index) : AttributeAnalysis
+ protected static function collectOne(Tokens $tokens, int $index) : AttributeAnalysis
{
if (!$tokens[$index]->isGivenKind(T_ATTRIBUTE)) {
throw new \InvalidArgumentException('Given index must point to an attribute.');
|