github action #4
Annotations
10 errors
Run PHPStan:
lib/Configuration/ComposerConfigurationReader.php#L15
Property JWage\PHPUnitTestGenerator\Configuration\ComposerConfigurationReader::$projectRoot (string) does not accept string|false.
|
Run PHPStan:
lib/TestClassGenerator.php#L1
Ignored error pattern #^Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class\-string\<T of object\>\|T of object, string given\.$# in path /home/runner/work/phpunit-test-generator/phpunit-test-generator/lib/TestClassGenerator.php was not matched in reported errors.
|
Run PHPStan:
lib/TestClassGenerator.php#L49
Parameter #1 $className of method JWage\PHPUnitTestGenerator\TestClassGenerator::init() expects class-string, string given.
|
Run PHPStan:
lib/TestClassMetadataParser.php#L1
Ignored error pattern #^Call to deprecated method getClass\(\) of class ReflectionParameter\.$# in path /home/runner/work/phpunit-test-generator/phpunit-test-generator/lib/TestClassMetadataParser.php was not matched in reported errors.
|
Run PHPStan:
lib/TestClassMetadataParser.php#L88
Ignored error pattern #^Call to an undefined method ReflectionType\:\:getName\(\)\.$# in path /home/runner/work/phpunit-test-generator/phpunit-test-generator/lib/TestClassMetadataParser.php is expected to occur 2 times, but occurred 3 times.
|
Run PHPStan:
lib/TestClassMetadataParser.php#L288
Method JWage\PHPUnitTestGenerator\TestClassMetadataParser::getParameterClass() return type with generic class ReflectionClass does not specify its types: T
|
Run PHPStan:
lib/TestClassMetadataParser.php#L290
Call to an undefined method ReflectionType::isBuiltin().
|
Run PHPStan:
lib/TestClassMetadataParser.php#L290
Only booleans are allowed in &&, ReflectionType|null given on the left side.
|
Run PHPStan:
lib/TestClassMetadataParser.php#L291
Call to an undefined method ReflectionType::getName().
|
Run PHPStan:
tests/TestClassMetadataParserTest.php#L23
Call to static method PHPUnit\Framework\Assert::assertInstanceOf() with 'JWage\\PHPUnitTestGenerator\\TestClassMetadata' and JWage\PHPUnitTestGenerator\TestClassMetadata will always evaluate to true.
|
Loading