mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 16:55:38 +08:00
Upgrade phpstan to v2
This commit is contained in:
@@ -75,7 +75,7 @@ class LicenseDumper
|
||||
*
|
||||
* @param Artifact $artifact Artifact instance
|
||||
* @param string $target_dir Target directory
|
||||
* @param array<string, array> &$license_summary Summary data to populate
|
||||
* @param array &$license_summary Summary data to populate
|
||||
* @return bool True if dumped
|
||||
* @throws SPCInternalException
|
||||
*/
|
||||
|
||||
@@ -44,7 +44,7 @@ abstract class UnixUtil
|
||||
continue;
|
||||
}
|
||||
$name = preg_replace('/@.*$/', '', $name);
|
||||
if ($name !== '' && $name !== false) {
|
||||
if (!empty($name)) {
|
||||
$defined[] = $name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user