Completed
Pull Request — master (#273)
by Gonçalo
04:11
created
src/Scope.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -459,7 +459,7 @@
 block discarded – undo
459 459
      *
460 460
      * @internal
461 461
      *
462
-     * @return \League\Fractal\ParamBag|null
462
+     * @return ParamBag
463 463
      */
464 464
     protected function getFilterFieldset()
465 465
     {
Please login to merge, or discard this patch.
src/Serializer/JsonApiSerializer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
     /**
248 248
      * Get the mandatory fields for the serializer
249 249
      *
250
-     * @return array
250
+     * @return string[]
251 251
      */
252 252
     public function getMandatoryFields()
253 253
     {
Please login to merge, or discard this patch.
test/ScopeTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -600,11 +600,18 @@
 block discarded – undo
600 600
         Mockery::close();
601 601
     }
602 602
 
603
+    /**
604
+     * @param string $resourceName
605
+     */
603 606
     protected function createTransformerWithIncludedResource($resourceName, $transformResult)
604 607
     {
605 608
         $transformer = Mockery::mock('League\Fractal\TransformerAbstract')->makePartial();
606 609
         $transformer->shouldReceive('getAvailableIncludes')->twice()->andReturn([$resourceName]);
607 610
         $transformer->shouldReceive('transform')->once()->andReturnUsing(
611
+
612
+            /**
613
+             * @param string $data
614
+             */
608 615
             function (array $data) {
609 616
                 return $data;
610 617
             }
Please login to merge, or discard this patch.