Skip to content

Commit

Permalink
Fix phpcsfixer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
denisyukphp committed May 16, 2024
1 parent f4da75b commit fdae324
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class Filesystem implements FilesystemInterface
{
private Fs $fs;

public function __construct(Fs $fs = null)
public function __construct(?Fs $fs = null)
{
$this->fs = $fs ?? new Fs();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class SyncProcessor implements ProcessorInterface
{
private Fs $fs;

public function __construct(Fs $fs = null)
public function __construct(?Fs $fs = null)
{
$this->fs = $fs ?? new Fs();
}
Expand Down
2 changes: 1 addition & 1 deletion src/TmpFileManagerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class TmpFileManagerBuilder implements TmpFileManagerBuilderInterface
private Fs $fs;
private EventDispatcherInterface $eventDispatcher;

public function __construct(Fs $fs = null, EventDispatcherInterface $eventDispatcher = null)
public function __construct(?Fs $fs = null, ?EventDispatcherInterface $eventDispatcher = null)
{
$this->tmpFileDir = sys_get_temp_dir();
$this->tmpFilePrefix = 'php';
Expand Down
2 changes: 1 addition & 1 deletion tests/Event/TmpFileEventSpy.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __invoke(AbstractTmpFileEvent $event): void
$this->tmpFiles[$event->getTmpFile()->getFilename()] = $event->getTmpFile();
}

public function getEventsCount(string $className = null): int
public function getEventsCount(?string $className = null): int
{
if (null === $className) {
return array_sum($this->eventsCounter);
Expand Down
4 changes: 2 additions & 2 deletions tests/Event/TmpFileManagerEventSpy.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __invoke(AbstractTmpFileManagerEvent $event): void
$this->tmpFilesCount[$event::class] = $event->getContainer()->count();
}

public function getEventsCount(string $className = null): int
public function getEventsCount(?string $className = null): int
{
if (null === $className) {
return array_sum($this->eventsCounter);
Expand All @@ -45,7 +45,7 @@ public function getEventsCount(string $className = null): int
return $this->eventsCounter[$className];
}

public function getTmpFilesCount(string $className = null): int
public function getTmpFilesCount(?string $className = null): int
{
if (null === $className) {
return array_sum($this->tmpFilesCount);
Expand Down

0 comments on commit fdae324

Please sign in to comment.