Skip to content

Commit 5856f29

Browse files
committed
remove deprecated features
1 parent 259e384 commit 5856f29

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Mapping/Loader/YamlFileLoader.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,10 @@ protected function parseNodes(array $nodes)
115115
*/
116116
private function parseFile($path)
117117
{
118-
$prevErrorHandler = set_error_handler(function ($level, $message, $script, $line) use ($path, &$prevErrorHandler) {
119-
$message = E_USER_DEPRECATED === $level ? preg_replace('/ on line \d+/', ' in "'.$path.'"$0', $message) : $message;
120-
121-
return $prevErrorHandler ? $prevErrorHandler($level, $message, $script, $line) : false;
122-
});
123-
124118
try {
125119
$classes = $this->yamlParser->parseFile($path, Yaml::PARSE_CONSTANT);
126120
} catch (ParseException $e) {
127121
throw new \InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML.', $path), 0, $e);
128-
} finally {
129-
restore_error_handler();
130122
}
131123

132124
// empty file

0 commit comments

Comments
 (0)