diff options
| author | Appleman1234 <applemansigloo@gmail.com> | 2022-09-25 13:30:13 +1000 |
|---|---|---|
| committer | Appleman1234 <applemansigloo@gmail.com> | 2022-09-25 13:30:13 +1000 |
| commit | 2c69095a1edf7474073451285238659d0f62ce3f (patch) | |
| tree | 5dee476605402c66dc2853d0836b29f6aedae62b /inc/route.php | |
| parent | e9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff) | |
PHP8.1 fixes from Rector
Diffstat (limited to 'inc/route.php')
| -rw-r--r-- | inc/route.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/route.php b/inc/route.php index 2a5c1732..d056d180 100644 --- a/inc/route.php +++ b/inc/route.php @@ -8,7 +8,7 @@ defined('TINYBOARD') or exit; function route($path) { global $config; - $entrypoints = array(); + $entrypoints = []; $entrypoints['/%b/'] = 'sb_board'; $entrypoints['/%b/'.$config['file_index']] = 'sb_board'; @@ -40,7 +40,7 @@ function route($path) { global $config; $reached = false; - list($request) = explode('?', $path); + [$request] = explode('?', (string) $path); foreach ($entrypoints as $id => $fun) { $id = '@^' . preg_quote($id, '@') . '$@u'; @@ -54,7 +54,7 @@ function route($path) { global $config; if (preg_match ($id, $request, $matches)) { array_shift($matches); - $reached = array($fun, $matches); + $reached = [$fun, $matches]; break; } |
