Skip to content

Commit

Permalink
feat: mark nullable types
Browse files Browse the repository at this point in the history
  • Loading branch information
MartkCz committed Oct 28, 2024
1 parent 292ea30 commit 483722f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Bars/Bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class Bar implements IBarPanel {
/** @var Application */
private $application;

public function __construct(IRequest $request, Application $application = NULL) {
public function __construct(IRequest $request, ?Application $application = NULL) {
$this->url = $request->getUrl();
$this->application = $application;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Bars/LogBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LogBar extends Bar {
/** @var string */
private $logDir;

public function __construct(string $logDir, IRequest $request, Application $application = NULL) {
public function __construct(string $logDir, IRequest $request, ?Application $application = NULL) {
parent::__construct($request, $application);
$this->logDir = $logDir;

Expand Down
2 changes: 1 addition & 1 deletion src/Bars/TempBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TempBar extends Bar implements IBarPanel {
/** @var IStorage */
private $storage;

public function __construct(string $tempDir, IRequest $request, IStorage $storage, Application $application = NULL) {
public function __construct(string $tempDir, IRequest $request, IStorage $storage, ?Application $application = NULL) {
parent::__construct($request, $application);
$this->tempDir = $tempDir;
$this->storage = $storage;
Expand Down

0 comments on commit 483722f

Please sign in to comment.