From 4f6e64681208cf6fc15772a8ed81e27c16fb8216 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Thu, 4 Sep 2025 12:13:57 +0800 Subject: [PATCH] cs fix --- src/SPC/exception/ValidationException.php | 4 ++-- src/SPC/util/LicenseDumper.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SPC/exception/ValidationException.php b/src/SPC/exception/ValidationException.php index 3af44303..3d51ad48 100644 --- a/src/SPC/exception/ValidationException.php +++ b/src/SPC/exception/ValidationException.php @@ -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); diff --git a/src/SPC/util/LicenseDumper.php b/src/SPC/util/LicenseDumper.php index 8ba17c91..6a40a73a 100644 --- a/src/SPC/util/LicenseDumper.php +++ b/src/SPC/util/LicenseDumper.php @@ -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");