- Issue created by @prudloff
- ๐ฎ๐ณIndia Vivek Panicker Kolkata
Vivek Panicker โ made their first commit to this issueโs fork.
- Merge request !7685Issue #3442833: Added datatype to $url argument. โ (Open) created by Vivek Panicker
- Status changed to Needs review
about 1 year ago 7:03am 24 April 2024 - ๐ฎ๐ณIndia Vivek Panicker Kolkata
Tests are failing because of media_library test https://git.drupalcode.org/issue/drupal-3442833/-/jobs/1413833#L79.
Not sure how to resolve it. - Status changed to Needs work
about 1 year ago 12:57pm 24 April 2024 - ๐บ๐ธUnited States smustgrave
Current development branch is 11.x
Can't just add this though it will have to have backward compatibility coverage for the typehint being added. With a deprecation.
- ๐ซ๐ทFrance prudloff Lille
The type hint would not fix the issue.
You can see in the steps to reproduce that I am passing a string. - ๐ฎ๐ณIndia Binoli Lalani Gujarat
Binoli Lalani โ made their first commit to this issueโs fork.
- Merge request !7721Issue #3442833: Undefined array key warning in UrlHelper::parse() โ (Closed) created by Binoli Lalani
- Status changed to Needs review
about 1 year ago 12:06pm 25 April 2024 - ๐ฎ๐ณIndia Binoli Lalani Gujarat
Hello,
I can reproduce the error in drupal 11.x and raised MR against 11.x branch. Please review.
Thank you!
- Status changed to Needs work
about 1 year ago 1:02pm 25 April 2024 - ๐บ๐ธUnited States smustgrave
Since this is a component class believe we will need test coverage
- Status changed to Needs review
about 1 year ago 8:03am 26 April 2024 - ๐ฎ๐ณIndia Binoli Lalani Gujarat
Hello @smustgrave,
Thank you for reviewing the code. I have added test coverage for the warning. Please review.
Thank you!
- Status changed to RTBC
about 1 year ago 2:40pm 28 April 2024 - ๐บ๐ธUnited States smustgrave
Not 100% the use case but the test does show the failure
1) Drupal\Tests\Component\Utility\UrlHelperTest::testParse with data set #5 ('#/://#', array(null, array(), '/://#')) Undefined array key 1 /builds/issue/drupal-3442833/core/lib/Drupal/Component/Utility/UrlHelper.php:213 /builds/issue/drupal-3442833/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php:272 /builds/issue/drupal-3442833/vendor/phpunit/phpunit/src/Framework/TestResult.php:729 /builds/issue/drupal-3442833/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685 /builds/issue/drupal-3442833/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685 /builds/issue/drupal-3442833/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651 /builds/issue/drupal-3442833/vendor/phpunit/phpunit/src/TextUI/Command.php:146 /builds/issue/drupal-3442833/vendor/phpunit/phpunit/src/TextUI/Command.php:99 ERRORS! Tests: 161, Assertions: 165, Errors: 1.
And checking if empty doesn't seem to hurt. LGTM.
- Status changed to Needs work
about 1 year ago 7:27am 29 April 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Left a suggestion on the MR to preserve the logic of which bit of logic processes external urls and which processes internal.
- ๐ฎ๐ณIndia pradhumanjainOSL
pradhumanjain2311 โ made their first commit to this issueโs fork.
- ๐ซ๐ทFrance prudloff Lille
prudloff โ changed the visibility of the branch 3442833-undefined-array-key to hidden.
- ๐ซ๐ทFrance prudloff Lille
I believe @alexpott's comment have been addressed.
- First commit to issue fork.
-
longwave โ
committed ea023626 on 10.4.x
Issue #3442833 by binoli lalani, vivek panicker, pradhumanjain2311,...
-
longwave โ
committed ea023626 on 10.4.x
-
longwave โ
committed 4bf739cf on 10.5.x
Issue #3442833 by binoli lalani, vivek panicker, pradhumanjain2311,...
-
longwave โ
committed 4bf739cf on 10.5.x
-
longwave โ
committed 56da8641 on 11.1.x
Issue #3442833 by binoli lalani, vivek panicker, pradhumanjain2311,...
-
longwave โ
committed 56da8641 on 11.1.x
-
longwave โ
committed 9307769b on 11.x
Issue #3442833 by binoli lalani, vivek panicker, pradhumanjain2311,...
-
longwave โ
committed 9307769b on 11.x
- ๐ฌ๐งUnited Kingdom longwave UK
Backported down to 10.4.x as an eligible bug fix.
Committed and pushed 9307769b8b1 to 11.x and 56da864154b to 11.1.x and 4bf739cf9e9 to 10.5.x and ea023626eaa to 10.4.x. Thanks!
- Status changed to Fixed
3 days ago 9:29am 30 April 2025 Automatically closed - issue fixed for 2 weeks with no activity.