Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Sep 2023 at 12:02 UTC
Updated:
18 Dec 2024 at 08:52 UTC
Jump to comment: Most recent
Comments
Comment #2
quietone commentedThese are not changes that are not hooks and the issue that added the @return statement. Skimming those issue I did not see anything that suggests these should be returning a value.
\Drupal\Core\Config\ImmutableConfig::delete : added in #2392319: Config objects (but not config entities) should by default be immutable. The return type added in first patch where it was like it is now, only throwing an exception.
\Drupal\rest\Routing\ResourceRoutes::onDynamicRouteEvent : #2158571: Routes added in RouteSubscribers cannot be altered in #134.
\Drupal\locale\PluralFormula::loadFormulae : #2571375: Remove TranslationManager dependency from LanguageManager in #19
TemporaryArrayObjectThrowingExceptions : #3232074: [Symfony 6] Add "array|string|int|float|bool|\ArrayObject|null" to all Normalizer classes that implement the method ::normalize()
Comment #4
quietone commentedComment #5
quietone commentedAdd SqlContentEntityStorageSchema. The return type was added in #2183231-34: Make ContentEntityDatabaseStorage generate static database schemas for content entities and was later committed. The function never had a return statement.
Comment #6
quietone commentedComment #7
atul4drupal commented1) core/modules/rest/tests/src/Functional/ResourceTestBase.php
This function still returns an array and I think it will not be appropriate to remove the @return comment for this function until the function is updated to not return anything (As this function is updating a variable passed by reference this may be updated to not return anything in a separate issue and comment may be updated accordingly too).
Comment #8
quietone commented@atul4drupal, thanks.
I reverted that change and created a new issue for ResourceTestBase, #3388204: Fix return type in \Drupal\Tests\rest\Functional\ResourceTestBase::recursiveKSort()
Comment #9
smustgrave commentedSeems there are some test failures.
Have not reviewed
Comment #10
quietone commentedThe failures are unrelated. I rebased the MR via GitLab and tests are passing now. Therefore, I am restoring RTBC.
Comment #11
longwaveI think the change to
hook_theme_suggestions_alter()needs a bit more work while we are here, but otherwise I checked each case and they all look correct to me.Comment #12
quietone commentedAdding tag.
There are no code changes and a followup has been made so I am restoring the RTBC.
Comment #13
smustgrave commentedPer #12
Comment #14
longwaveThanks for opening the followup.
Committed and pushed to 11.x, 10.2.x and 10.1.x.