Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 27, 2024
1 parent f8dd6f8 commit b6f7178
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Loader/AnnotationFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function findClass(string $file)
$tokens = token_get_all(file_get_contents($file));

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

$nsTokens = [\T_NS_SEPARATOR => true, \T_STRING => true];
Expand Down
2 changes: 1 addition & 1 deletion Tests/Loader/AnnotationFileLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testLoadTraitWithClassConstant()
public function testLoadFileWithoutStartTag()
{
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Did you forgot to add the "<?php" start tag at the beginning of the file?');
$this->expectExceptionMessage('Did you forget to add the "<?php" start tag at the beginning of the file?');
$this->loader->load(__DIR__.'/../Fixtures/OtherAnnotatedClasses/NoStartTagClass.php');
}

Expand Down

0 comments on commit b6f7178

Please sign in to comment.