- 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
7 months 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
7 months 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() โ (Open) created by Binoli Lalani
- Status changed to Needs review
7 months 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
7 months 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
7 months 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
7 months 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
7 months 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.