Skip to content

Commit

Permalink
use static instead of self
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtThiemann committed Sep 13, 2024
1 parent 61a06ca commit a977d4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Communication/StdStreams.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class StdStreams
*/
public static function getInstance(): static
{
if (self::$instance === null) {
self::$instance = new static();
if (static::$instance === null) {
static::$instance = new static();
}
return self::$instance;
return static::$instance;
}

/**
Expand Down

0 comments on commit a977d4e

Please sign in to comment.