Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!4271
Issue
#3370580
by esdrasterrero: Deprecated function preg_split() in RouteProvider.php
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3370580
by esdrasterrero: Deprecated function preg_split() in RouteProvider.php
issue/drupal-3370580:3370580-deprecated-function-pregsplit
into
10.0.x
Overview
1
Commits
2
Pipelines
0
Changes
1
Open
esdras terrero
requested to merge
issue/drupal-3370580:3370580-deprecated-function-pregsplit
into
10.0.x
1 year ago
Overview
1
Commits
2
Pipelines
0
Changes
1
Expand
Resolves deprecation warning.
Closes
#3370580
0
0
Merge request reports
Compare
10.0.x
version 1
14889bb6
1 year ago
10.0.x (HEAD)
and
latest version
latest version
a7d7cecb
2 commits,
1 year ago
version 1
14889bb6
1 commit,
1 year ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/lib/Drupal/Core/Routing/RouteProvider.php
+
1
−
1
Options
@@ -349,7 +349,7 @@ protected function getRoutesByPath($path) {
// have a case-insensitive match from the incoming path to the lower case
// pattern outlines from \Drupal\Core\Routing\RouteCompiler::compile().
// @see \Drupal\Core\Routing\CompiledRoute::__construct()
$parts
=
preg_split
(
'@/+@'
,
mb_strtolower
(
$path
),
-
1
,
PREG_SPLIT_NO_EMPTY
);
$parts
=
!
empty
(
$path
)
?
preg_split
(
'@/+@'
,
mb_strtolower
(
$path
),
-
1
,
PREG_SPLIT_NO_EMPTY
)
:
[]
;
$collection
=
new
RouteCollection
();
Loading