Skip to content

Commit c351660

Browse files
keradusnicolas-grekas
authored andcommitted
DX: re-apply CS
1 parent c69ad47 commit c351660

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Loader/YamlFileLoader.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ class YamlFileLoader extends FileLoader
116116
private int $anonymousServicesCount;
117117
private string $anonymousServicesSuffix;
118118

119-
120119
public function load(mixed $resource, string $type = null): mixed
121120
{
122121
$path = $this->locator->locate($resource);
@@ -760,7 +759,7 @@ private function parseCallable(mixed $callable, string $parameter, string $id, s
760759
*/
761760
protected function loadFile(string $file): ?array
762761
{
763-
if (!class_exists(\Symfony\Component\Yaml\Parser::class)) {
762+
if (!class_exists(YamlParser::class)) {
764763
throw new RuntimeException('Unable to load YAML config files as the Symfony Yaml Component is not installed. Try running "composer require symfony/yaml".');
765764
}
766765

0 commit comments

Comments
 (0)