Skip to content

Commit

Permalink
Use arrow function to set route not found
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Dec 26, 2021
1 parent d86f657 commit 5300045
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@
'message' => 'I am the One! You found me.',
];
});
$routes->notFound(static function () : array {
return [
'message' => 'Route not found.',
];
});
$routes->notFound(static fn () : array => [
'message' => 'Route not found.',
]);
});
});

0 comments on commit 5300045

Please sign in to comment.