Needs work
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Deprecations
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 May 2026 at 12:10 UTC
Updated:
19 Jul 2026 at 15:02 UTC
Jump to comment: Most recent
There are three new PHPStan deprecations, added during 30 April.
Call to deprecated function node_access_needs_rebuild() in drupal:11.4.0 and is removed from drupal:13.0.0. Use
\Drupal::service('\Drupal\node\NodeAccessRebuild')->setNeedsRebuild() and
\Drupal::service('\Drupal\node\NodeAccessRebuild')->needsRebuild() instead.
30 April 14:20 PHPStan Next Minor is greeen with no problems
https://git.drupalcode.org/project/scheduler/-/jobs/9608056#L52
30 April 20:07 PHPStan - has 3 problems
https://git.drupalcode.org/project/scheduler/-/jobs/9613308#L51
Use the replacements as specified
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jonathan1055 commentedThe Change Record is https://www.drupal.org/node/3534610
This was not given in the deprecation message.
Comment #4
jonathan1055 commentedThe old functions still need to be called, to continue test coverage for core 11.3 and earlier, hence we have the conditional check on whether the service exists.
This also means that PHPStan has to be told to ignore the old functions, hence the addition to phpstan-baseline.neon.
The PHPStan jobs at 'current' (11.3), 'Max PHP' and 'Next Minor' (11.4) all end green. PHPStan at Core 12.x has other deprecations such as missing classes on Drupal\migrate_drupal\Plugin, Drupal\Tests\migrate_drupal\Kernel, Drupal\rules\Core\RulesConditionBase, Drupal\rules\Context\ContextConfig but those are for a separate issue.
Comment #6
jonathan1055 commentedDone
Comment #9
jonathan1055 commentedThis should also be fixed in 8.x-1.x