Skip to content

Commit 1500aee

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: fix Twig 3.12 compatibility [Translation] Review Serbian translations Fix typos [DependencyInjection] Fix error message typo in YamlFileLoader Fix typo in exception message langage to language
2 parents 8a908a3 + 8ee0c24 commit 1500aee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Loader/AttributeFileLoader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function findClass(string $file): string|false
7676
$tokens = token_get_all(file_get_contents($file));
7777

7878
if (1 === \count($tokens) && \T_INLINE_HTML === $tokens[0][0]) {
79-
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));
79+
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));
8080
}
8181

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

Tests/Loader/AttributeFileLoaderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testLoadTraitWithClassConstant()
5454
public function testLoadFileWithoutStartTag()
5555
{
5656
$this->expectException(\InvalidArgumentException::class);
57-
$this->expectExceptionMessage('Did you forgot to add the "<?php" start tag at the beginning of the file?');
57+
$this->expectExceptionMessage('Did you forget to add the "<?php" start tag at the beginning of the file?');
5858
$this->loader->load(__DIR__.'/../Fixtures/OtherAnnotatedClasses/NoStartTagClass.php');
5959
}
6060

0 commit comments

Comments
 (0)