Skip to content

Draft Add HookConvert #1157

Draft Add HookConvert

Draft Add HookConvert #1157

Triggered via pull request October 20, 2024 10:07
Status Failure
Total duration 31s
Artifacts

phpstan.yml

on: pull_request
Static analysis with PHPStan
21s
Static analysis with PHPStan
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Static analysis with PHPStan: config/drupal-phpunit-bootstrap-file.php#L13
Instantiation of deprecated class DrupalFinder\DrupalFinder: in drupal-finder:1.3.0 and is removed from drupal-finder:2.0.0. Use \DrupalFinder\DrupalFinderComposerRuntime instead.
Static analysis with PHPStan: config/drupal-phpunit-bootstrap-file.php#L14
Call to deprecated method locateRoot() of class DrupalFinder\DrupalFinder: Will be removed in v2. Future usage should instantiate a new DrupalFinder object by passing the starting path to its constructor.
Static analysis with PHPStan: rector.php#L21
Instantiation of deprecated class DrupalFinder\DrupalFinder: in drupal-finder:1.3.0 and is removed from drupal-finder:2.0.0. Use \DrupalFinder\DrupalFinderComposerRuntime instead.
Static analysis with PHPStan: rector.php#L22
Call to deprecated method locateRoot() of class DrupalFinder\DrupalFinder: Will be removed in v2. Future usage should instantiate a new DrupalFinder object by passing the starting path to its constructor.
Static analysis with PHPStan: src/Rector/Convert/HookConvertRector.php#L26
Property DrupalRector\Rector\Convert\HookConvertRector::$useStmts type has no value type specified in iterable type array.
Static analysis with PHPStan: src/Rector/Convert/HookConvertRector.php#L93
Fetching deprecated class constant REMOVE_NODE of class PhpParser\NodeTraverser: Use NodeVisitor::REMOVE_NODE instead.
Static analysis with PHPStan: src/Rector/Convert/HookConvertRector.php#L106
Variable $info might not be defined.
Static analysis with PHPStan: src/Rector/Convert/HookConvertRector.php#L111
Parameter #1 $name of class PhpParser\Node\Stmt\Class_ constructor expects PhpParser\Node\Identifier|string|null, PhpParser\Node\Name given.
Static analysis with PHPStan: src/Rector/Convert/HookConvertRector.php#L128
Property PhpParser\Node\Stmt\ClassLike::$name (PhpParser\Node\Identifier|null) does not accept PhpParser\Node\Name.
Static analysis with PHPStan: src/Rector/Convert/HookConvertRector.php#L136
Parameter #1 $uses of class PhpParser\Node\Stmt\Use_ constructor expects array<PhpParser\Node\UseItem>, array<int, PhpParser\Node\Stmt\UseUse> given.
Static analysis with PHPStan
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/