Skip to content

Commit

Permalink
#6 - Bug ServiceBase
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandovga committed Dec 17, 2024
1 parent d1b5363 commit 987efb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/ServiceBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public function find(int $id): mixed
*/
public function manager(Request $request): mixed
{
if (method_exists($request, 'data')) {
$data = $request->data();
if (method_exists($request, 'getData')) {
$data = $request->getData();
} else {
$data = $this->validated($request);
}
Expand Down

0 comments on commit 987efb4

Please sign in to comment.