Skip to content
This repository was archived by the owner on Nov 5, 2021. It is now read-only.

Commit 4200bf1

Browse files
authored
Merge pull request #4 from yourparkingspace/fix-to-array
fix-to-array Replaces 'toArray()' with 'jsonSerialize()'
2 parents bede1a4 + 73b16a4 commit 4200bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Routes/Collection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function toJson($options = 0)
1717
{
1818
$options = JSON_PRETTY_PRINT | $options;
1919

20-
return json_encode($this->toArray(), $options);
20+
return json_encode($this->jsonSerialize(), $options);
2121
}
2222

2323
/**

0 commit comments

Comments
 (0)