mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
PHP/Core
* enforced v7.1 compliance, preparations for v7.2 * removed deprecated usage of each() * prefer array deconstruction via [] instead of calling list() * try to catch failed session_start() * prefer ... - Token instead of calling func_get_args() func_num_args() * enforce return types in AjaxHandler * revision push
This commit is contained in:
@@ -157,10 +157,10 @@ class FileGen
|
||||
self::$cliOpts[$opt] = true;
|
||||
}
|
||||
|
||||
public static function hasOpt(/* ...$opt */)
|
||||
public static function hasOpt(string ...$opts) : int
|
||||
{
|
||||
$result = 0x0;
|
||||
foreach (func_get_args() as $idx => $arg)
|
||||
foreach ($opts as $idx => $arg)
|
||||
{
|
||||
if (!is_string($arg))
|
||||
continue;
|
||||
@@ -204,7 +204,7 @@ class FileGen
|
||||
|
||||
if (!empty(self::$tplFiles[$key]))
|
||||
{
|
||||
list($file, $destPath, $deps) = self::$tplFiles[$key];
|
||||
[$file, $destPath, $deps] = self::$tplFiles[$key];
|
||||
|
||||
if ($content = file_get_contents(FileGen::$tplPath.$file.'.in'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user