Make ClassLike::from
return type assert the subclass type (#154)
#456
Annotations
10 errors and 1 warning
PHPStan:
src/PhpGenerator/ClassLike.php#L1
Ignored error pattern #^Match expression does not handle remaining value\: true$# in path /home/runner/work/php-generator/php-generator/src/PhpGenerator/ClassLike.php was not matched in reported errors.
|
PHPStan:
src/PhpGenerator/ClassLike.php#L76
Parameter #1 $class of method Nette\PhpGenerator\Printer::printClass() expects Nette\PhpGenerator\ClassType|Nette\PhpGenerator\EnumType|Nette\PhpGenerator\InterfaceType|Nette\PhpGenerator\TraitType, $this(Nette\PhpGenerator\ClassLike) given.
|
PHPStan:
src/PhpGenerator/ClassType.php#L1
Ignored error pattern #^Method Nette\\PhpGenerator\\ClassType\:\:addTrait\(\) has parameter \$deprecatedParam with no value type specified in iterable type array\.$# in path /home/runner/work/php-generator/php-generator/src/PhpGenerator/ClassType.php was not matched in reported errors.
|
PHPStan:
src/PhpGenerator/EnumType.php#L1
Ignored error pattern #^Method Nette\\PhpGenerator\\EnumType\:\:addTrait\(\) has parameter \$deprecatedParam with no value type specified in iterable type array\.$# in path /home/runner/work/php-generator/php-generator/src/PhpGenerator/EnumType.php was not matched in reported errors.
|
PHPStan:
src/PhpGenerator/Extractor.php#L1
Ignored error pattern #^Access to an undefined property PhpParser\\Node\:\:\$attrGroups\.$# in path /home/runner/work/php-generator/php-generator/src/PhpGenerator/Extractor.php was not matched in reported errors.
|
PHPStan:
src/PhpGenerator/Extractor.php#L1
Ignored error pattern #^Access to an undefined property PhpParser\\Node\\Expr\:\:\$value\.$# in path /home/runner/work/php-generator/php-generator/src/PhpGenerator/Extractor.php was not matched in reported errors.
|
PHPStan:
src/PhpGenerator/Extractor.php#L1
Ignored error pattern #^Method Nette\\PhpGenerator\\Extractor\:\:addCommentAndAttributes\(\) has parameter \$element with no type specified\.$# in path /home/runner/work/php-generator/php-generator/src/PhpGenerator/Extractor.php was not matched in reported errors.
|
PHPStan:
src/PhpGenerator/Extractor.php#L1
Ignored error pattern #^Property class@anonymous/PhpGenerator/Extractor\.php\:176\:\:\$callback has no type specified\.$# in path /home/runner/work/php-generator/php-generator/src/PhpGenerator/Extractor.php was not matched in reported errors.
|
PHPStan:
src/PhpGenerator/Extractor.php#L217
Result of && is always false.
|
PHPStan:
src/PhpGenerator/Extractor.php#L217
Result of && is always false.
|
PHPStan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|