Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Fix grammar and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Frömer committed Jun 17, 2019
1 parent bfd0c48 commit 3e25e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DeclareStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static function fromArray(array $config): self
if (! isset(self::ALLOWED[$directive])) {
throw new InvalidArgumentException(
sprintf(
'Declare directive must be on of: %s.',
'Declare directive must be one of: %s.',
implode(', ', array_keys(self::ALLOWED))
)
);
Expand All @@ -92,7 +92,7 @@ public static function fromArray(array $config): self
if (gettype($value) !== self::ALLOWED[$directive]) {
throw new InvalidArgumentException(
sprintf(
'Declare value invalid. Expected %s got %s.',
'Declare value invalid. Expected %s, got %s.',
self::ALLOWED[$directive],
gettype($value)
)
Expand Down

0 comments on commit 3e25e05

Please sign in to comment.