Skip to content

Commit 8719f32

Browse files
committed
Fix typos in ArrayAssertsTrait
1 parent 801c239 commit 8719f32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/ArrayAssertsTrait.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static function assertAssociativeArray(
7575
}
7676

7777
if (!is_array($array) && !$allowAdditional) {
78-
throw InvalidArgumentException::create(2, 'array when argument #4 is set true');
78+
throw InvalidArgumentException::create(2, 'array when argument #4 is set to true');
7979
}
8080

8181
$constraint = new AssociativeArray($constraints, $allowMissing, $allowAdditional);
@@ -162,7 +162,7 @@ public static function assertSequentialArray(
162162
string $message = ''
163163
): void {
164164
if (!(is_array($array) || ($array instanceof Traversable))) {
165-
throw InvalidArgumentException::create(3, 'array or Traversable');
165+
throw InvalidArgumentException::create(1, 'array or Traversable');
166166
}
167167

168168
$constraint = new SequentialArray($minItems, $maxItems, $constraint);

0 commit comments

Comments
 (0)