Added support for int-mask, int-mask-of, non-falsy-string, truthy-string #80
Annotations
2 errors and 3 warnings
|
Run composer infection
The operation was canceled.
|
Run composer infection:
src/PhpDocParser/PhpDocParser.php#L26
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*/
final class PhpDocParser
{
- public function __construct(private readonly TagPrioritizer $tagPrioritizer = new PHPStanOverPsalmOverOthersTagPrioritizer(), private readonly PHPStanPhpDocParser $parser = new PHPStanPhpDocParser(typeParser: new TypeParser(new ConstExprParser()), constantExprParser: new ConstExprParser(), requireWhitespaceBeforeDescription: true), private readonly Lexer $lexer = new Lexer())
+ public function __construct(private readonly TagPrioritizer $tagPrioritizer = new PHPStanOverPsalmOverOthersTagPrioritizer(), private readonly PHPStanPhpDocParser $parser = new PHPStanPhpDocParser(typeParser: new TypeParser(new ConstExprParser()), constantExprParser: new ConstExprParser(), requireWhitespaceBeforeDescription: false), private readonly Lexer $lexer = new Lexer())
{
}
public function parsePhpDoc(string $phpDoc) : PhpDoc
|
|
Run composer infection:
src/TagPrioritizer/PHPStanOverPsalmOverOthersTagPrioritizer.php#L26
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
if (str_starts_with($tagName, '@psalm')) {
return 1;
}
- return 0;
+ return -1;
}
}
|
The logs for this run have expired and are no longer available.
Loading