8000 remove the func_get_arg trick since we can bc break a final function · symfony/symfony@ce09b71 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce09b71

Browse files
committed
remove the func_get_arg trick since we can bc break a final function
1 parent 9e39950 commit ce09b71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Routing/Loader/Configurator/RoutingConfigurator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ public function __construct(RouteCollection $collection, PhpFileLoader $loader,
3636
/**
3737
* @return ImportConfigurator
3838
*/
39-
final public function import($resource, $type = null, $ignoreErrors = false /* , $exclude = null */)
39+
final public function import($resource, $type = null, $ignoreErrors = false, $exclude = null)
4040
{
4141
$this->loader->setCurrentDir(\dirname($this->path));
42-
$exclude = \func_num_args() >= 4 ? func_get_arg(3) : null;
4342
$imported = $this->loader->import($resource, $type, $ignoreErrors, $this->file, $exclude);
4443
if (!\is_array($imported)) {
4544
return new ImportConfigurator($this->collection, $imported);

0 commit comments

Comments
 (0)
0