Skip to content

Commit

Permalink
[11.x] Fixes parameter declaration for ServiceProvider::optimizes() (
Browse files Browse the repository at this point in the history
…#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]>
  • Loading branch information
crynobone authored Oct 9, 2024
1 parent a143a77 commit 6e91690
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Support/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,12 @@ public function commands($commands)
/**
* Register commands that should run on "optimize" or "optimize:clear".
*
* @param string $optimize
* @param string $clear
* @param string|null $optimize
* @param string|null $clear
* @param string|null $key
* @return void
*/
protected function optimizes(string $optimize = null, string $clear = null, ?string $key = null)
protected function optimizes(?string $optimize = null, ?string $clear = null, ?string $key = null)
{
$key ??= (string) Str::of(get_class($this))
->classBasename()
Expand Down

0 comments on commit 6e91690

Please sign in to comment.