Skip to content

Commit

Permalink
Fix little mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Sep 12, 2024
1 parent b64e57f commit 4bb12c1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Registry/ElementRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
use function dirname;
use function implode;

class ElementRegistry
final class ElementRegistry
{
/** @var \SimpleSAML\XML\Registry\AbstractElementRegistry|null $instance */
protected static ?AbstractElementRegistry $instance = null;
private static ?AbstractElementRegistry $instance = null;

/** @var array<string, string> */
protected array $registry = [];
private array $registry = [];


final private function __construct()
Expand Down Expand Up @@ -56,10 +56,9 @@ public static function getInstance(): AbstractElementRegistry
public function registerElementHandler(string $class): void
{
Assert::subclassOf($class, AbstractElement::class);
$namespace = class::NS;
$className = AbstractElement::getClassName($class);

$this->registry[$namespace][$key] = $class;
$this->registry[$class::NS][$className] = $class;
}


Expand Down

0 comments on commit 4bb12c1

Please sign in to comment.