Closed (fixed)
Project:
Commerce Shipping
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2026 at 12:24 UTC
Updated:
24 Feb 2026 at 11:49 UTC
Jump to comment: Most recent
Resolve the current phpstan failures and require phpstan to pass on all pipelines:
Line src/Plugin/Field/FieldFormatter/ShippingInformationFormatter.php
------ ----------------------------------------------------------------------
121 Call to static method fromRoute() on an unknown class
Drupal\Core\Url.
🪪 class.notFound
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
168 Call to static method fromRoute() on an unknown class
Drupal\Core\Url.
🪪 class.notFound
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
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 #3
damienmckennaWaiting for the test run to finish.
Comment #4
jsacksick commentedThe changes seem to make this worse, somehow :).
I think the report is buggy, we aren't experiencing this anywhere else...
Comment #6
damienmckennaI created a separate MR that just requires the phpstan tests pass, will see how this goes.
Comment #7
damienmckennaThe phpstan tests are currently failing, per the MR. My attempt to fix it may need some improvement, but the problem exists.
Comment #8
jsacksick commentedYeah, I'm aware the problem exists, but the report seems buggy... I'm not sure what's happening, because the class exists... The method exists, and have plenty of calls to that method in several of our contrib modules, and even without commerce_shipping, without any complaints... So I don't know what's going on.
Comment #11
jsacksick commentedI ended up ignoring the following path:
The only other thing that worked was downgrading PHPUNIT, this is a recent failure affecting recent versions of PHPSTAN which is why this isn't failed on the previous Drupal core version.