mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 21:34:53 +08:00
cs fix
This commit is contained in:
parent
a79564f685
commit
4f6e646812
@ -14,9 +14,9 @@ use SPC\builder\Extension;
|
||||
*/
|
||||
class ValidationException extends SPCException
|
||||
{
|
||||
private null|array|string $validation_module = null;
|
||||
private array|string|null $validation_module = null;
|
||||
|
||||
public function __construct(string $message = '', int $code = 0, ?\Throwable $previous = null, null|array|string $validation_module = null)
|
||||
public function __construct(string $message = '', int $code = 0, ?\Throwable $previous = null, array|string|null $validation_module = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
|
||||
|
||||
@ -117,7 +117,7 @@ class LicenseDumper
|
||||
/**
|
||||
* Loads a source license file from the specified path.
|
||||
*/
|
||||
private function loadSourceFile(string $source_name, int $index, null|array|string $in_path, ?string $custom_base_path = null): string
|
||||
private function loadSourceFile(string $source_name, int $index, array|string|null $in_path, ?string $custom_base_path = null): string
|
||||
{
|
||||
if (is_null($in_path)) {
|
||||
throw new SPCInternalException("source [{$source_name}] license file is not set, please check config/source.json");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user