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

Commit 3e25e05

Browse files
author
Andreas Frömer
committed
Fix grammar and typo
1 parent bfd0c48 commit 3e25e05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DeclareStatement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static function fromArray(array $config): self
8383
if (! isset(self::ALLOWED[$directive])) {
8484
throw new InvalidArgumentException(
8585
sprintf(
86-
'Declare directive must be on of: %s.',
86+
'Declare directive must be one of: %s.',
8787
implode(', ', array_keys(self::ALLOWED))
8888
)
8989
);
@@ -92,7 +92,7 @@ public static function fromArray(array $config): self
9292
if (gettype($value) !== self::ALLOWED[$directive]) {
9393
throw new InvalidArgumentException(
9494
sprintf(
95-
'Declare value invalid. Expected %s got %s.',
95+
'Declare value invalid. Expected %s, got %s.',
9696
self::ALLOWED[$directive],
9797
gettype($value)
9898
)

0 commit comments

Comments
 (0)