Skip to content

Commit 6e91690

Browse files
authored
[11.x] Fixes parameter declaration for ServiceProvider::optimizes() (#53074)
``` Illuminate\Support\ServiceProvider::optimizes(): Implicitly marking parameter $optimize as nullable is deprecated, the explicit nullable type must be used instead Illuminate\Support\ServiceProvider::optimizes(): Implicitly marking parameter $clear as nullable is deprecated, the explicit nullable type must be used instead ``` Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent a143a77 commit 6e91690

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Illuminate/Support/ServiceProvider.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,12 @@ public function commands($commands)
477477
/**
478478
* Register commands that should run on "optimize" or "optimize:clear".
479479
*
480-
* @param string $optimize
481-
* @param string $clear
480+
* @param string|null $optimize
481+
* @param string|null $clear
482482
* @param string|null $key
483483
* @return void
484484
*/
485-
protected function optimizes(string $optimize = null, string $clear = null, ?string $key = null)
485+
protected function optimizes(?string $optimize = null, ?string $clear = null, ?string $key = null)
486486
{
487487
$key ??= (string) Str::of(get_class($this))
488488
->classBasename()

0 commit comments

Comments
 (0)