Skip to content

Commit

Permalink
general code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 2, 2020
1 parent ffd4b4f commit dff734c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ public static function getInstance(): Registry
*/
protected function __construct()
{
throw new Exception("Cannot create a new Registry.");

}

/**
* Prevent the instance from being cloned (which would create a second instance of it)
*/
protected function __clone()
{
throw new Exception("Cannot clone a Registry.");

}

/**
Expand Down

0 comments on commit dff734c

Please sign in to comment.