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 /smart_build.php | |
| parent | e9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff) | |
PHP8.1 fixes from Rector
Diffstat (limited to 'smart_build.php')
| -rw-r--r-- | smart_build.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/smart_build.php b/smart_build.php index cfac446a..242767be 100644 --- a/smart_build.php +++ b/smart_build.php @@ -8,11 +8,11 @@ if (!$config["smart_build_helper"]) { } $config['smart_build'] = false; // Let's disable it, so we can build the page for real -$config['generation_strategies'] = array('strategy_immediate'); +$config['generation_strategies'] = ['strategy_immediate']; function after_open_board() { global $config; $config['smart_build'] = false; - $config['generation_strategies'] = array('strategy_immediate'); + $config['generation_strategies'] = ['strategy_immediate']; }; $request = $_SERVER['REQUEST_URI']; @@ -23,7 +23,7 @@ if (!$route) { $reached = false; } else { - list ($fun, $args) = $route; + [$fun, $args] = $route; $reached = call_user_func_array($fun, $args); } @@ -41,7 +41,7 @@ function die_404() { global $config; } if ($reached) { - if ($request[strlen($request)-1] == '/') { + if ($request[strlen((string) $request)-1] == '/') { $request .= 'index.html'; } $request = '.'.$request; |
