diff --git a/src/ThemeServiceProvider.php b/src/ThemeServiceProvider.php index 107580bb1e..cd1185f9ed 100644 --- a/src/ThemeServiceProvider.php +++ b/src/ThemeServiceProvider.php @@ -14,7 +14,7 @@ class ThemeServiceProvider extends ServiceProvider protected string $packageName = 'theme-name'; protected array $commands = []; protected bool $theme = true; - protected null|string $componentsNamespace = null; + protected ?string $componentsNamespace = null; /** * ------------------------- diff --git a/src/app/Http/Controllers/Auth/VerifyEmailController.php b/src/app/Http/Controllers/Auth/VerifyEmailController.php index dba7d26ce9..c9a0db08a0 100644 --- a/src/app/Http/Controllers/Auth/VerifyEmailController.php +++ b/src/app/Http/Controllers/Auth/VerifyEmailController.php @@ -11,7 +11,7 @@ class VerifyEmailController extends Controller { - public null|string $redirectTo = null; + public ?string $redirectTo = null; /** * Create a new controller instance. diff --git a/src/app/Library/CrudPanel/Traits/Filters.php b/src/app/Library/CrudPanel/Traits/Filters.php index 34f08d4457..da2584b728 100644 --- a/src/app/Library/CrudPanel/Traits/Filters.php +++ b/src/app/Library/CrudPanel/Traits/Filters.php @@ -136,7 +136,7 @@ public function filters() /** * @param string $name - * @return null|CrudFilter + * @return ?CrudFilter */ public function getFilter($name) { diff --git a/src/app/Library/CrudPanel/Traits/Input.php b/src/app/Library/CrudPanel/Traits/Input.php index 5f520667df..930ec6d450 100644 --- a/src/app/Library/CrudPanel/Traits/Input.php +++ b/src/app/Library/CrudPanel/Traits/Input.php @@ -17,7 +17,7 @@ trait Input * Returns the direct inputs parsed for model and relationship creation. * * @param array $inputs - * @param null|array $relationDetails + * @param ?array $relationDetails * @param bool|string $relationMethod * @return array */ diff --git a/src/app/Library/Uploaders/Support/RegisterUploadEvents.php b/src/app/Library/Uploaders/Support/RegisterUploadEvents.php index 237f90ce85..a8f6e9c8ea 100644 --- a/src/app/Library/Uploaders/Support/RegisterUploadEvents.php +++ b/src/app/Library/Uploaders/Support/RegisterUploadEvents.php @@ -25,7 +25,7 @@ public function __construct( } } - public static function handle(CrudField|CrudColumn $crudObject, array $uploaderConfiguration, string $macro, ?array $subfield = null, ?bool $registerModelEvents = true): void + public static function handle(CrudField|CrudColumn $crudObject, array $uploaderConfiguration, string $macro, ?array $subfield = null, bool $registerModelEvents = true): void { $instance = new self($crudObject, $uploaderConfiguration, $macro); diff --git a/src/app/Library/Uploaders/Support/Traits/HandleRepeatableUploads.php b/src/app/Library/Uploaders/Support/Traits/HandleRepeatableUploads.php index 56f6b2f91b..8c00f65ae6 100644 --- a/src/app/Library/Uploaders/Support/Traits/HandleRepeatableUploads.php +++ b/src/app/Library/Uploaders/Support/Traits/HandleRepeatableUploads.php @@ -14,7 +14,7 @@ trait HandleRepeatableUploads { public bool $handleRepeatableFiles = false; - public null|string $repeatableContainerName = null; + public ?string $repeatableContainerName = null; /******************************* * Setters - fluently configure the uploader @@ -31,7 +31,7 @@ public function repeats(string $repeatableContainerName): self /******************************* * Getters *******************************/ - public function getRepeatableContainerName(): null|string + public function getRepeatableContainerName(): ?string { return $this->repeatableContainerName; } diff --git a/src/app/Library/Validation/Rules/ValidFileArray.php b/src/app/Library/Validation/Rules/ValidFileArray.php index 829408e023..03f824c62e 100644 --- a/src/app/Library/Validation/Rules/ValidFileArray.php +++ b/src/app/Library/Validation/Rules/ValidFileArray.php @@ -63,7 +63,7 @@ protected function validateItems(string $attribute, array $items, Closure $fail) } } - protected function validateArrayData(string $attribute, Closure $fail, null|array $data = null, null|array $rules = null): void + protected function validateArrayData(string $attribute, Closure $fail, ?array $data = null, ?array $rules = null): void { $data = $data ?? $this->data; $rules = $rules ?? $this->getFieldRules();