Browse Source

Fix grammar

Chris Burke 10 years ago
parent
commit
bf62fe54a5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Utility/Hash.php
  2. 1 1
      tests/TestCase/Utility/HashTest.php

+ 1 - 1
src/Utility/Hash.php

@@ -49,7 +49,7 @@ class Hash
     {
         if (!(is_array($data) || $data instanceof ArrayAccess)) {
             throw new InvalidArgumentException(
-                'Invalid data type, must an array or \ArrayAccess instance.'
+                'Invalid data type, must be an array or \ArrayAccess instance.'
             );
         }
 

+ 1 - 1
tests/TestCase/Utility/HashTest.php

@@ -265,7 +265,7 @@ class HashTest extends TestCase
      * Test get() for invalid $data type
      *
      * @expectedException \InvalidArgumentException
-     * @expectedExceptionMessage Invalid data type, must an array or \ArrayAccess instance.
+     * @expectedExceptionMessage Invalid data type, must be an array or \ArrayAccess instance.
      * @return void
      */
     public function testGetInvalidData()