Skip to content

Commit

Permalink
fix php 8.4 Deprecated warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
it-can committed Dec 23, 2024
1 parent f25485c commit 7e8fc78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/BootHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ trait BootHelpers
* @param callable|string|null $callback
* @return void
*/
protected function withDriver(string $service, string|array $driver, callable|string $callback = null): void
protected function withDriver(string $service, string|array $driver, callable|string|null $callback = null): void
{
if (is_string($driver)) {
$driver = [$driver => $callback];
Expand All @@ -57,7 +57,7 @@ protected function withDriver(string $service, string|array $driver, callable|st
protected function withValidationRule(
string $rule,
callable|string $callback,
callable|string $message = null,
callable|string|null $message = null,
bool $implicit = false
): void {
$this->callAfterResolving(
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Middleware/MiddlewareDeclaration.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function last(): void
* @param (callable(\Illuminate\Contracts\Foundation\Application):TValue)|null $callback
* @return $this
*/
public function shared(callable $callback = null): static
public function shared(?callable $callback = null): static
{
$this->kernel->getApplication()->singleton($this->middleware, $callback);

Expand Down

0 comments on commit 7e8fc78

Please sign in to comment.