Closed (won't fix)
Project:
Pathauto
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2020 at 18:49 UTC
Updated:
9 Feb 2026 at 16:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
thallesFollow a patch.
Comment #3
thallesFollow a new patch
Comment #4
berdirper discussion in the other issue, /** @var static $instance */ usually works fine for me, and this is definitely not valid because it's missing the variable name which is required for an inline definition.
Comment #5
thallesI tested it again now and it works for me, so I saw that yesterday's docblock in your comment has a "." after the variable, so it didn't work.
Comment #6
thallesDo you want a new patch or you will fix before commit?
Comment #7
thallesFollow a new patch
Comment #8
mably commentedLooks like subclassing is still better for DI and should be prefered when possible.
Check related issue for more details: #3134914: Update FormBase documentation to discourage abuse of create method