Skip to content

Commit 0a3d487

Browse files
committed
remove deprecated features
1 parent 1506bf2 commit 0a3d487

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Loader/YamlFileLoader.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,10 @@ public function load($file, $type = null)
5757
$this->yamlParser = new YamlParser();
5858
}
5959

60-
$prevErrorHandler = set_error_handler(function ($level, $message, $script, $line) use ($file, &$prevErrorHandler) {
61-
$message = E_USER_DEPRECATED === $level ? preg_replace('/ on line \d+/', ' in "'.$file.'"$0', $message) : $message;
62-
63-
return $prevErrorHandler ? $prevErrorHandler($level, $message, $script, $line) : false;
64-
});
65-
6660
try {
6761
$parsedConfig = $this->yamlParser->parseFile($path);
6862
} catch (ParseException $e) {
6963
throw new \InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML.', $path), 0, $e);
70-
} finally {
71-
restore_error_handler();
7264
}
7365

7466
$collection = new RouteCollection();

0 commit comments

Comments
 (0)