diff --git a/src/Http/Response/Factory.php b/src/Http/Response/Factory.php index 4709fae5c..ccce2608e 100644 --- a/src/Http/Response/Factory.php +++ b/src/Http/Response/Factory.php @@ -36,6 +36,7 @@ public function __construct(TransformerFactory $transformer) * Respond with a created response and associate a location if provided. * * @param null|string $location + * @param mixed $content * * @return \Dingo\Api\Http\Response */ diff --git a/tests/DispatcherTest.php b/tests/DispatcherTest.php index eb06e4083..5f96a23e4 100644 --- a/tests/DispatcherTest.php +++ b/tests/DispatcherTest.php @@ -88,7 +88,9 @@ public function testInternalRequests() public function testInternalRequestWithVersionAndParameters() { $this->router->version('v1', function () { - $this->router->get('test', function () { return 'test'; }); + $this->router->get('test', function () { + return 'test'; + }); }); $this->assertEquals('test', $this->dispatcher->version('v1')->with(['foo' => 'bar'])->get('test')); diff --git a/tests/Routing/Adapter/LaravelTest.php b/tests/Routing/Adapter/LaravelTest.php index 4c94f9a6a..5e4afd4fa 100644 --- a/tests/Routing/Adapter/LaravelTest.php +++ b/tests/Routing/Adapter/LaravelTest.php @@ -6,7 +6,6 @@ use Illuminate\Events\Dispatcher; use Illuminate\Container\Container; use Dingo\Api\Routing\Adapter\Laravel; -use Illuminate\Routing\RouteCollection; class LaravelTest extends BaseAdapterTest {