Skip to content

Commit

Permalink
Switch to php8
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Ilic <[email protected]>
  • Loading branch information
gigili committed Mar 21, 2021
1 parent 3eeeafd commit 5764c59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct() {
* @return Routes returns the instance of the Routes utility
* @throws Exception Throws an exception when you try to declare and already existing route
*/
public function add(string $url = "", callable $callback = NULL, array $method = ["GET"]): self {
public function add(string $url = "", callable|string|null $callback = NULL, array $method = ["GET"]): self {
$tmpUrl = $url;

foreach ($method as $m) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": ">=7.4",
"php": ">=8.0",
"ext-json": "*"
},
"autoload": {
Expand Down

0 comments on commit 5764c59

Please sign in to comment.