Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
@var
in docblock of configFactory
property in Drupal\Core\Controller\ControllerBase
class type-hinted to Drupal\Core\Config\Config
but it holds Drupal\Core\Config\ConfigFactory
Proposed resolution
Remaining tasks
Comment | File | Size | Author |
---|---|---|---|
#10 | interdiff-4-10.txt | 429 bytes | pk188 |
#10 | Docblock-of-configFactory-property-ControllerBase-2881884-10.patch | 1.08 KB | pk188 |
#8 | 2881884-8-fixedwrongdocblock.patch | 446 bytes | hardikpandya |
#4 | Docblock-of-configFactory-property-ControllerBase-2881884-4.patch | 1.08 KB | Devaraj johnson |
Comments
Comment #2
vijaycs85Comment #3
vijaycs85Comment #4
Devaraj johnson CreditAttribution: Devaraj johnson as a volunteer and commentedUpdated the patch please have a look
Comment #5
Devaraj johnson CreditAttribution: Devaraj johnson as a volunteer and commentedComment #6
dawehnerWe should typehint to the interface, see
\Drupal\Core\Config\ConfigFactoryInterface
Comment #7
vijaycs85Comment #8
hardikpandya CreditAttribution: hardikpandya as a volunteer commentedAdded patch.
Comment #9
vijaycs85It doesn't look like your patch address #6 Its exactly same as #4
Comment #10
pk188 CreditAttribution: pk188 at OpenSense Labs commented#8 was incorrect. I applied the changes suggested in #6.
Comment #11
dawehnerThank you
Comment #12
vijaycs85+1 to RTBC.
Comment #15
Gábor HojtsyThanks all, good find, thanks for the fix.
Comment #17
rajeevku CreditAttribution: rajeevku commented. This doesn't look grammatically correct. Should be changed to
Should i open a follow up or this one will be re opened. Looking for everyone's opinion. Thank you.