File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ public function has($key)
139
139
/**
140
140
* Determine if messages exist for any of the given keys.
141
141
*
142
- * @param array|string $keys
142
+ * @param array|string|null $keys
143
143
* @return bool
144
144
*/
145
145
public function hasAny ($ keys = [])
Original file line number Diff line number Diff line change @@ -151,6 +151,14 @@ public function testHasAnyIndicatesExistence()
151
151
$ this ->assertFalse ($ container ->hasAny ('baz ' , 'biz ' ));
152
152
}
153
153
154
+ public function testHasAnyWithKeyNull ()
155
+ {
156
+ $ container = new MessageBag ;
157
+ $ container ->setFormat (':message ' );
158
+ $ container ->add ('foo ' , 'bar ' );
159
+ $ this ->assertTrue ($ container ->hasAny (null ));
160
+ }
161
+
154
162
public function testHasIndicatesExistenceOfAllKeys ()
155
163
{
156
164
$ container = new MessageBag ;
You can’t perform that action at this time.
0 commit comments