- Issue created by @longwave
- First commit to issue fork.
- π΅πͺPeru diegoe Lima, PerΓΊ
The attached MR updates core to use specific phpstan error identifiers.
Unfortunately,
phpstan-drupal
hasn't updated to use the new Error Identifiers feature, so we can't ignore the specific errors coming from it. These remaining ignores are:core/tests/Drupal/FunctionalTests/Core/Container/ServiceDeprecationTest.php: // @phpstan-ignore-next-line core/tests/Drupal/FunctionalTests/Core/Container/ServiceDeprecationTest.php- \Drupal::service('deprecation_test.service'); core/tests/Drupal/FunctionalTests/Core/Container/ServiceDeprecationTest.php: // @phpstan-ignore-next-line core/tests/Drupal/FunctionalTests/Core/Container/ServiceDeprecationTest.php- \Drupal::service('deprecation_test.alias'); -- core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php: // @phpstan-ignore-next-line core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php- ['#pre_render' => ['\Drupal\Tests\Core\Render\callback'], '#type' => 'container'], -- core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php: // @phpstan-ignore-next-line core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php- ['#post_render' => ['\Drupal\Tests\Core\Render\RendererCallbackTest::renderCallback'], '#type' => 'container'], -- core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php: // @phpstan-ignore-next-line core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php- ['#access_callback' => [new static('test'), 'renderCallback'], '#type' => 'container'], -- core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php: // @phpstan-ignore-next-line core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php- ['#lazy_builder' => ['\Drupal\Tests\Core\Render\callback', []]], -- core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php: // @phpstan-ignore-next-line core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php- $this->storage->getQuery()->execute(); -- core/modules/navigation/src/Plugin/Block/NavigationShortcutsBlock.php: // @phpstan-ignore-next-line core/modules/navigation/src/Plugin/Block/NavigationShortcutsBlock.php- '#lazy_builder' => ['navigation.shortcut_lazy_builder:lazyLinks', [$this->configuration['label']]], -- core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php: // @phpstan-ignore-next-line core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php- 'hello_or_hi', -- core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php: // @phpstan-ignore-next-line core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php- '#pre_render' => ['current_time'],
- Status changed to Needs review
12 months ago 9:44am 25 May 2024 - π΅πͺPeru diegoe Lima, PerΓΊ
diegoe β changed the visibility of the branch 3447950_diegoe_specific-phpstan-ignores to hidden.
- Status changed to Needs work
12 months ago 3:12pm 27 May 2024 - πΊπΈUnited States smustgrave
Unfortunately, phpstan-drupal hasn't updated to use the new
Do we have a ticket tracking the update for this?
Could we open a follow up for this to address the other instances and postpone on the ticket for updating phpstan-drupal.
Love the idea too so +1 from me.
- π΅πͺPeru diegoe Lima, PerΓΊ
> Could we open a follow up for this to address the other instances and postpone on the ticket for updating phpstan-drupal.
Opened https://www.drupal.org/project/drupal/issues/3456364 π Use specific Error Identifiers with @phpstan-ignore for phpstan-drupal errors Postponed , hopefully marked it correctly too.
Upstream now has https://github.com/mglaman/phpstan-drupal/issues/772
Removing
Needs followup
tag. - Status changed to Needs review
10 months ago 1:50am 19 July 2024 - Status changed to RTBC
10 months ago 3:31pm 19 July 2024 - πΊπΈUnited States smustgrave
Follow up seems good to me, has the details from here and upstream link. Suppose this is good to move forward
- Status changed to Fixed
10 months ago 3:43am 25 July 2024 Automatically closed - issue fixed for 2 weeks with no activity.