diff --git a/src/Illuminate/Http/Concerns/InteractsWithInput.php b/src/Illuminate/Http/Concerns/InteractsWithInput.php index 9080ba174ac9..cd173cbf962c 100644 --- a/src/Illuminate/Http/Concerns/InteractsWithInput.php +++ b/src/Illuminate/Http/Concerns/InteractsWithInput.php @@ -137,7 +137,7 @@ public function filled($key) * @param string|array $keys * @return bool */ - public function filledAny($keys) + public function anyFilled($keys) { $keys = is_array($keys) ? $keys : func_get_args(); diff --git a/tests/Http/HttpRequestTest.php b/tests/Http/HttpRequestTest.php index 773a6849afe1..c5df7c7f5a93 100644 --- a/tests/Http/HttpRequestTest.php +++ b/tests/Http/HttpRequestTest.php @@ -301,26 +301,26 @@ public function testFilledAnyMethod() { $request = Request::create('/', 'GET', ['name' => 'Taylor', 'age' => '', 'city' => null]); - $this->assertTrue($request->filledAny(['name'])); - $this->assertTrue($request->filledAny('name')); + $this->assertTrue($request->anyFilled(['name'])); + $this->assertTrue($request->anyFilled('name')); - $this->assertFalse($request->filledAny(['age'])); - $this->assertFalse($request->filledAny('age')); + $this->assertFalse($request->anyFilled(['age'])); + $this->assertFalse($request->anyFilled('age')); - $this->assertFalse($request->filledAny(['foo'])); - $this->assertFalse($request->filledAny('foo')); + $this->assertFalse($request->anyFilled(['foo'])); + $this->assertFalse($request->anyFilled('foo')); - $this->assertTrue($request->filledAny(['age', 'name'])); - $this->assertTrue($request->filledAny('age', 'name')); + $this->assertTrue($request->anyFilled(['age', 'name'])); + $this->assertTrue($request->anyFilled('age', 'name')); - $this->assertTrue($request->filledAny(['foo', 'name'])); - $this->assertTrue($request->filledAny('foo', 'name')); + $this->assertTrue($request->anyFilled(['foo', 'name'])); + $this->assertTrue($request->anyFilled('foo', 'name')); - $this->assertFalse($request->filledAny('age', 'city')); - $this->assertFalse($request->filledAny('age', 'city')); + $this->assertFalse($request->anyFilled('age', 'city')); + $this->assertFalse($request->anyFilled('age', 'city')); - $this->assertFalse($request->filledAny('foo', 'bar')); - $this->assertFalse($request->filledAny('foo', 'bar')); + $this->assertFalse($request->anyFilled('foo', 'bar')); + $this->assertFalse($request->anyFilled('foo', 'bar')); } public function testInputMethod()