Draft Add HookConvert #1168
phpstan.yml
on: pull_request
Static analysis with PHPStan
16s
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#L99
Fetching deprecated class constant REMOVE_NODE of class PhpParser\NodeTraverser:
Use NodeVisitor::REMOVE_NODE instead.
|
Static analysis with PHPStan:
src/Rector/Convert/HookConvertRector.php#L143
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:
src/Rector/Convert/HookConvertRector.php#L197
Fetching deprecated class constant MODIFIER_PUBLIC of class PhpParser\Node\Stmt\Class_:
Use Modifiers::PUBLIC instead
|
Static analysis with PHPStan:
src/Rector/Convert/HookConvertRector.php#L227
Method DrupalRector\Rector\Convert\HookConvertRector::getHookAndModuleName() return type has no value type specified in iterable type array.
|
Static analysis with PHPStan:
src/Set/Drupal10SetList.php#L9
Class DrupalRector\Set\Drupal10SetList implements deprecated interface Rector\Set\Contract\SetListInterface:
This interface needs a reflection to load and uses constant links. Now we changed to services provider architecture that can be used and registerd easily. Use
|
Static analysis with PHPStan:
src/Set/Drupal8SetList.php#L9
Class DrupalRector\Set\Drupal8SetList implements deprecated interface Rector\Set\Contract\SetListInterface:
This interface needs a reflection to load and uses constant links. Now we changed to services provider architecture that can be used and registerd easily. Use
|
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/
|