Skip to content

Commit 00c9db4

Browse files
committed
Fix deprecation notice triggering
1 parent 567e0d5 commit 00c9db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function getConfigTreeBuilder()
8282
->thenInvalid('Found values for both "route_basepath" and "route_basepaths", use "route_basepaths" instead.')
8383
->end()
8484
->beforeNormalization()
85-
->ifTrue(function ($v) { return isset($v['route_basepath']); })
85+
->ifTrue(function ($v) { return isset($v['route_basepath']) && !is_array($v['route_basepath']); })
8686
->then(function ($v) {
8787
@trigger_error('The route_basepath setting is deprecated as of version 1.4 and will be removed in 2.0. Use route_basepaths instead.', E_USER_DEPRECATED);
8888

0 commit comments

Comments
 (0)