We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc622b0 commit 6f12686Copy full SHA for 6f12686
src/Fractal.php
@@ -362,7 +362,7 @@ public function toJson($options = 0)
362
/**
363
* Perform the transformation to array.
364
*
365
- * @return array
+ * @return array|null
366
*/
367
public function toArray()
368
{
@@ -455,10 +455,10 @@ public function getResourceName()
455
456
* Convert the object into something JSON serializable.
457
458
459
460
#[\ReturnTypeWillChange]
461
- public function jsonSerialize(): array
+ public function jsonSerialize(): ?array
462
463
return $this->toArray();
464
}
0 commit comments