Skip to content

Commit

Permalink
come back
Browse files Browse the repository at this point in the history
  • Loading branch information
mirko-pagliai committed Mar 24, 2023
1 parent f9dc452 commit 6c7ec4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 4 additions & 3 deletions psalm-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.x-dev@">
<file src="src/Command/LinkScannerCommand.php">
<TypeDoesNotContainType occurrences="1">
<code>empty($this-&gt;LinkScanner)</code>
</TypeDoesNotContainType>
<RedundantPropertyInitializationCheck occurrences="2">
<code>$this-&gt;LinkScanner</code>
<code>new LinkScanner()</code>
</RedundantPropertyInitializationCheck>
</file>
</files>
4 changes: 1 addition & 3 deletions src/Command/LinkScannerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ class LinkScannerCommand extends Command
*/
public function initialize(): void
{
if (empty($this->LinkScanner)) {
$this->LinkScanner = new LinkScanner();
}
$this->LinkScanner ??= new LinkScanner();
}

/**
Expand Down

0 comments on commit 6c7ec4d

Please sign in to comment.