Upgrade phpstan to v2

This commit is contained in:
crazywhalecc
2026-02-03 11:22:32 +08:00
parent c536fedff7
commit 103b5b3585
9 changed files with 162 additions and 159 deletions

View File

@@ -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
*/

View File

@@ -44,7 +44,7 @@ abstract class UnixUtil
continue;
}
$name = preg_replace('/@.*$/', '', $name);
if ($name !== '' && $name !== false) {
if (!empty($name)) {
$defined[] = $name;
}
}