Skip to content

Commit

Permalink
Replace implicit nullable types in parameter declarations (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoordsij authored Jul 13, 2024
1 parent f6ad331 commit bd8edca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/DataCollector/FilesCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class FilesCollector extends DataCollector implements Renderable
/**
* @param \Illuminate\Container\Container $app
*/
public function __construct(Container $app = null)
public function __construct(?Container $app = null)
{
$this->app = $app;
$this->basePath = base_path();
Expand Down
2 changes: 1 addition & 1 deletion src/DataCollector/LaravelCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LaravelCollector extends DataCollector implements Renderable
/**
* @param Application $app
*/
public function __construct(Application $app = null)
public function __construct(?Application $app = null)
{
$this->app = $app;
}
Expand Down
2 changes: 1 addition & 1 deletion src/DataCollector/QueryCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class QueryCollector extends PDOCollector
/**
* @param TimeDataCollector $timeCollector
*/
public function __construct(TimeDataCollector $timeCollector = null)
public function __construct(?TimeDataCollector $timeCollector = null)
{
$this->timeCollector = $timeCollector;
}
Expand Down
2 changes: 1 addition & 1 deletion src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public function __construct($transport, $laravelDebugbar)
$this->originalTransport = $transport;
$this->laravelDebugbar = $laravelDebugbar;
}
public function send(RawMessage $message, Envelope $envelope = null): ?SentMessage
public function send(RawMessage $message, ?Envelope $envelope = null): ?SentMessage
{
return $this->laravelDebugbar['time']->measure(
'mail: ' . Str::limit($message->getSubject(), 100),
Expand Down

0 comments on commit bd8edca

Please sign in to comment.