- Issue created by @quietone
- Merge request !4810Issue #3387988: Fix @return type, documentation only → (Closed) created by quietone
- 🇳🇿New Zealand quietone
These 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() → - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 30,164 pass - last update
over 1 year ago 30,168 pass - last update
over 1 year ago 30,168 pass - last update
over 1 year ago Custom Commands Failed - 🇳🇿New Zealand quietone
Add 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.
- last update
over 1 year ago 30,168 pass - Status changed to Needs review
over 1 year ago 5:41am 19 September 2023 - Status changed to Needs work
over 1 year ago 6:15am 19 September 2023 - 🇮🇳India atul4drupal
1) core/modules/rest/tests/src/Functional/ResourceTestBase.php
protected static function recursiveKSort(array &$array) { // First, sort the main array. ksort($array); // Then check for child arrays. foreach ($array as $key => &$value) { if (is_array($value)) { static::recursiveKSort($value); } } return $array; } }
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).
- last update
over 1 year ago 30,164 pass, 3 fail - Status changed to Needs review
over 1 year ago 9:19am 19 September 2023 - 🇳🇿New Zealand quietone
@atul4drupal, thanks.
I reverted that change and created a new issue for ResourceTestBase, 📌 Fix return type in \Drupal\Tests\rest\Functional\ResourceTestBase::recursiveKSort Active
- Status changed to Needs work
over 1 year ago 5:52pm 19 September 2023 - 🇺🇸United States smustgrave
Seems there are some test failures.
Have not reviewed
- last update
over 1 year ago 30,395 pass, 2 fail - Status changed to RTBC
over 1 year ago 12:41am 13 October 2023 - 🇳🇿New Zealand quietone
The failures are unrelated. I rebased the MR via GitLab and tests are passing now. Therefore, I am restoring RTBC.
1) Drupal\FunctionalJavascriptTests\Ajax\ThrobberTest::testProgressThrobberPosition Behat\Mink\Exception\ElementNotFoundException: Element matching xpath "//div[contains(@class, "dropbutton-wrapper")]/following-sibling::div[contains(@class, "ajax-progress-throbber")]" not found.
1) Drupal\Tests\toolbar\FunctionalJavascript\ToolbarActiveTrailTest::testToolbarActiveTrail with data set #1 ('horizontal') Failed asserting that false is true.
- Status changed to Needs work
over 1 year ago 10:52am 13 October 2023 - 🇬🇧United Kingdom longwave UK
I 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. - Status changed to Needs review
over 1 year ago 1:05pm 13 October 2023 - 🇳🇿New Zealand quietone
Adding tag.
There are no code changes and a followup has been made so I am restoring the RTBC.
- Status changed to RTBC
over 1 year ago 1:11pm 13 October 2023 - Status changed to Fixed
over 1 year ago 1:45pm 13 October 2023 - 🇬🇧United Kingdom longwave UK
Thanks for opening the followup.
Committed and pushed to 11.x, 10.2.x and 10.1.x.
-
longwave →
committed 457fb8bc on 10.1.x
Issue #3387988 by quietone, atul4drupal: Fix @return type, simple fixes...
-
longwave →
committed 457fb8bc on 10.1.x
-
longwave →
committed 3410fb54 on 10.2.x
Issue #3387988 by quietone, atul4drupal: Fix @return type, simple fixes...
-
longwave →
committed 3410fb54 on 10.2.x
-
longwave →
committed 5e8d5e8a on 11.x
Issue #3387988 by quietone, atul4drupal: Fix @return type, simple fixes
-
longwave →
committed 5e8d5e8a on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.