mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-05 15:55:39 +08:00
Add php and lib-base as special libraries to add dependencies to the root node (#618)
* Remove E_STRICT * Add lib-base and php as special libs * Remove debug code * Fix phpunit with new config structure * Fix phpunit test and fix license dumper bug for new type of lib * Add missing lib type filter for windows builder
This commit is contained in:
@@ -20,6 +20,14 @@ function is_assoc_array(mixed $array): bool
|
||||
return is_array($array) && (!empty($array) && array_keys($array) !== range(0, count($array) - 1));
|
||||
}
|
||||
|
||||
/**
|
||||
* Judge if an array is a list
|
||||
*/
|
||||
function is_list_array(mixed $array): bool
|
||||
{
|
||||
return is_array($array) && (empty($array) || array_keys($array) === range(0, count($array) - 1));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a logger instance
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user