'src/Test.php' of type string is incompatible with the type PHPUnit\Framework\T expected by parameter $expected of PHPUnit\Framework\Assert::assertSame().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
14
self::assertSame(/** @scrutinizer ignore-type */ 'src/Test.php', (new ClassMethodUsage('src/Test.php', 1))->getFile());
1 of type integer is incompatible with the type PHPUnit\Framework\T expected by parameter $expected of PHPUnit\Framework\Assert::assertSame().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
19
self::assertSame(/** @scrutinizer ignore-type */ 1, (new ClassMethodUsage('src/Test.php', 1))->getLine());