Skip to content

Commit 349c87c

Browse files
committed
fix: typo
1 parent e4158da commit 349c87c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Component/DependencyInjection/Compiler/ResolveClassPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public function process(ContainerBuilder $container): void
2929
if (preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+(?:\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+)++$/', $id)) {
3030
if (!class_exists($id) && !interface_exists($id)) {
3131
$error = $definition instanceof ChildDefinition ?
32-
'has a parent but no class, and its name looks like an FQCN. Either the class is missing or you want to inherit it from the parent service' :
33-
'name looks like an FQCN but the class does not exists';
32+
'has a parent but no class, and its name looks like a FQCN. Either the class is missing or you want to inherit it from the parent service' :
33+
'name looks like a FQCN but the class does not exist';
3434

3535
throw new InvalidArgumentException("Service definition \"{$id}\" {$error}. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.");
3636
}

src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveClassPassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testClassFoundChildDefinition()
8585
public function testAmbiguousChildDefinition()
8686
{
8787
$this->expectException(InvalidArgumentException::class);
88-
$this->expectExceptionMessage('Service definition "App\Foo\Child" has a parent but no class, and its name looks like an FQCN. Either the class is missing or you want to inherit it from the parent service. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.');
88+
$this->expectExceptionMessage('Service definition "App\Foo\Child" has a parent but no class, and its name looks like a FQCN. Either the class is missing or you want to inherit it from the parent service. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.');
8989
$container = new ContainerBuilder();
9090
$container->register('app.foo', 'App\Foo');
9191
$container->setDefinition('App\Foo\Child', new ChildDefinition('App\Foo'));
@@ -96,7 +96,7 @@ public function testAmbiguousChildDefinition()
9696
public function testInvalidClassNameDefinition()
9797
{
9898
$this->expectException(InvalidArgumentException::class);
99-
$this->expectExceptionMessage('Service definition "Acme\UnknownClass" name looks like an FQCN but the class does not exists. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.');
99+
$this->expectExceptionMessage('Service definition "Acme\UnknownClass" name looks like a FQCN but the class does not exist. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.');
100100
$container = new ContainerBuilder();
101101
$container->register('Acme\UnknownClass');
102102

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy