Skip to content

Commit

Permalink
Fix PSalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk authored and sebastianbergmann committed Feb 7, 2023
1 parent 073956d commit 1f7c754
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
28 changes: 14 additions & 14 deletions .psalm/baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,18 @@
<code>\SebastianBergmann\CodeCoverage\CodeCoverage</code>
</InvalidNullableReturnType>
<MissingThrowsDocblock>
<code>codeCoverageGenerationFailed</code>
<code>codeCoverageGenerationFailed</code>
<code>codeCoverageGenerationFailed</code>
<code>codeCoverageGenerationFailed</code>
<code>codeCoverageGenerationFailed</code>
<code>codeCoverageGenerationFailed</code>
<code>codeCoverageGenerationSucceeded</code>
<code>codeCoverageGenerationSucceeded</code>
<code>codeCoverageGenerationSucceeded</code>
<code>codeCoverageGenerationSucceeded</code>
<code>codeCoverageGenerationSucceeded</code>
<code>codeCoverageGenerationSucceeded</code>
<code>coverageCacheDirectory</code>
<code>coverageClover</code>
<code>coverageCobertura</code>
Expand All @@ -450,22 +462,10 @@
<code>coverageText</code>
<code>coverageText</code>
<code>coverageXml</code>
<code>self::codeCoverageGenerationFailed($printer, $e)</code>
<code>self::codeCoverageGenerationFailed($printer, $e)</code>
<code>self::codeCoverageGenerationFailed($printer, $e)</code>
<code>self::codeCoverageGenerationFailed($printer, $e)</code>
<code>self::codeCoverageGenerationFailed($printer, $e)</code>
<code>self::codeCoverageGenerationFailed($printer, $e)</code>
<code>self::codeCoverageGenerationSucceeded($printer)</code>
<code>self::codeCoverageGenerationSucceeded($printer)</code>
<code>self::codeCoverageGenerationSucceeded($printer)</code>
<code>self::codeCoverageGenerationSucceeded($printer)</code>
<code>self::codeCoverageGenerationSucceeded($printer)</code>
<code>self::codeCoverageGenerationSucceeded($printer)</code>
</MissingThrowsDocblock>
<NullableReturnStatement>
<code>self::$driver</code>
<code>self::$instance</code>
<code>$this-&gt;codeCoverage</code>
<code>$this-&gt;driver</code>
</NullableReturnStatement>
<PossiblyNullReference>
<code>start</code>
Expand Down
4 changes: 2 additions & 2 deletions src/Runner/CodeCoverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
*/
final class CodeCoverage
{
private static self $instance;
private static ?self $instance = null;
private ?\SebastianBergmann\CodeCoverage\CodeCoverage $codeCoverage = null;
private ?Driver $driver = null;
private bool $collecting = false;
Expand All @@ -52,7 +52,7 @@ final class CodeCoverage

public static function instance(): self
{
if (!isset(self::$instance)) {
if (self::$instance === null) {
self::$instance = new self;
}

Expand Down
8 changes: 4 additions & 4 deletions src/TextUI/Configuration/CodeCoverageFilterRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
*/
final class CodeCoverageFilterRegistry
{
private static self $instance;
private ?Filter $filter = null;
private bool $configured = false;
private static ?self $instance = null;
private ?Filter $filter = null;
private bool $configured = false;

public static function instance(): self
{
if (!isset(self::$instance)) {
if (self::$instance === null) {
self::$instance = new self;
}

Expand Down

0 comments on commit 1f7c754

Please sign in to comment.