Skip to content

Fix class registry to be able to work with class const fetch #48

Fix class registry to be able to work with class const fetch

Fix class registry to be able to work with class const fetch #48

Triggered via pull request January 28, 2024 20:05
Status Failure
Total duration 29s
Artifacts

php.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 1 warning
build: src/ClassRegistryInitExtension.php#L51
Call to an undefined method PhpParser\Node\Expr|PhpParser\Node\Name::toString().
build: src/ClassRegistryInitExtension.php#L53
Parameter #1 $expr of method PhpParser\ConstExprEvaluator::evaluateSilently() expects PhpParser\Node\Expr, PhpParser\Node\Expr|string given.
build
Process completed with exit code 1.
build: src/Service/SchemaService.php#L17
* [Disallow mixed type hint] Usage of "mixed" type hint is disallowed.
build: src/Service/SchemaService.php#L18
* [Disallow mixed type hint] Usage of "mixed" type hint is disallowed.
build: src/Service/SchemaService.php#L35
* [Parameter type hint] Method \PHPStanCakePHP2\Service\SchemaService::__construct() has useless @param annotation for parameter $reflectionProvider.
build: src/Service/SchemaService.php#L55
* [Parameter type hint] Method \PHPStanCakePHP2\Service\SchemaService::getTableSchema() has useless @param annotation for parameter $table.
build: src/Service/SchemaService.php#L78
* [Static closure] Closure not using "$this" should be declared static.
build: src/Service/SchemaService.php#L96
* [Static closure] Closure not using "$this" should be declared static.
build: src/Service/SchemaService.php#L72
* [Function length] Your function is too long. Currently using 35 lines. Can be up to 20 lines.
build: src/Service/SchemaService.php#L81
* [Line length] Line exceeds maximum limit of 100 characters; contains 101 characters
build: src/Service/SchemaService.php#L102
* [Line length] Line exceeds 80 characters; contains 84 characters
build: src/Service/SchemaService.php#L104
* [Line length] Line exceeds 80 characters; contains 81 characters
build
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/.