Skip to content

Commit 82be42e

Browse files
committed
Improve descriptions of ArrayHasItemWith and ArrayHasKeyWith
1 parent 484b718 commit 82be42e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/Constraint/ArrayHasItemWith.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(int $index, Constraint $constraint)
6161
*/
6262
public function toString(): string
6363
{
64-
return 'has a value at index ' . $this->index . ' '
64+
return 'is an array that has a value at index ' . $this->index . ' '
6565
. 'which ' . $this->constraint->toString();
6666
}
6767

‎src/Constraint/ArrayHasKeyWith.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct($key, Constraint $constraint)
5757
*/
5858
public function toString(): string
5959
{
60-
return 'has the key ' . $this->exporter()->export($this->key) . ' '
60+
return 'is an array that has the key ' . $this->exporter()->export($this->key) . ' '
6161
. 'whose value ' . $this->constraint->toString();
6262
}
6363

0 commit comments

Comments
 (0)