8000 Fix typos · core23/symfony@e7ea24c · GitHub
[go: up one dir, main page]

Skip to content

Commit e7ea24c

Browse files
committed
Fix typos
1 parent df912ce commit e7ea24c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Routing/Loader/AnnotationFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function findClass(string $file)
8787
$tokens = token_get_all(file_get_contents($file));
8888

8989
if (1 === \count($tokens) && \T_INLINE_HTML === $tokens[0][0]) {
90-
throw new \InvalidArgumentException(sprintf('The file "%s" does not contain PHP code. Did you forgot to add the "<?php" start tag at the beginning of the file?', $file));
90+
throw new \InvalidArgumentException(sprintf('The file "%s" does not contain PHP code. Did you forget to add the "<?php" start tag at the beginning of the file?', $file));
9191
}
9292

9393
$nsTokens = [\T_NS_SEPARATOR => true, \T_STRING => true];

src/Symfony/Component/Routing/Tests/Loader/AnnotationFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testLoadTraitWithClassConstant()
4545
public function testLoadFileWithoutStartTag()
4646
{
4747
$this->expectException(\InvalidArgumentException::class);
48-
$this->expectExceptionMessage('Did you forgot to add the "<?php" start tag at the beginning of the file?');
48+
$this->expectExceptionMessage('Did you forget to add the "<?php" start tag at the beginning of the file?');
4949
$this->loader->load(__DIR__.'/../Fixtures/OtherAnnotatedClasses/NoStartTagClass.php');
5050
}
5151

0 commit comments

Comments
 (0)
0