Skip to content

Commit d45b185

Browse files
committed
fix cs
1 parent 1ac621f commit d45b185

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/SPC/exception/ValidationException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
*/
1515
class ValidationException extends SPCException
1616
{
17-
private null|array|string $validation_module = null;
17+
private array|string|null $validation_module = null;
1818

19-
public function __construct(string $message = '', int $code = 0, ?\Throwable $previous = null, null|array|string $validation_module = null)
19+
public function __construct(string $message = '', int $code = 0, ?\Throwable $previous = null, array|string|null $validation_module = null)
2020
{
2121
parent::__construct($message, $code, $previous);
2222

src/SPC/util/LicenseDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private function getSourceLicenses(string $source_name): iterable
117117
/**
118118
* Loads a source license file from the specified path.
119119
*/
120-
private function loadSourceFile(string $source_name, int $index, null|array|string $in_path, ?string $custom_base_path = null): string
120+
private function loadSourceFile(string $source_name, int $index, array|string|null $in_path, ?string $custom_base_path = null): string
121121
{
122122
if (is_null($in_path)) {
123123
throw new SPCInternalException("source [{$source_name}] license file is not set, please check config/source.json");

0 commit comments

Comments
 (0)