mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 11:25:35 +08:00
fix cs
This commit is contained in:
@@ -14,9 +14,9 @@ use SPC\builder\Extension;
|
|||||||
*/
|
*/
|
||||||
class ValidationException extends SPCException
|
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);
|
parent::__construct($message, $code, $previous);
|
||||||
|
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ class LicenseDumper
|
|||||||
/**
|
/**
|
||||||
* Loads a source license file from the specified path.
|
* 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)) {
|
if (is_null($in_path)) {
|
||||||
throw new SPCInternalException("source [{$source_name}] license file is not set, please check config/source.json");
|
throw new SPCInternalException("source [{$source_name}] license file is not set, please check config/source.json");
|
||||||
|
|||||||
Reference in New Issue
Block a user