Merge pull request #435 from AliN11/patch-1

re-add __clone
This commit is contained in:
Dominik Liebler
2021-04-30 08:29:35 +02:00
committed by GitHub

View File

@@ -28,6 +28,13 @@ final class Singleton
{ {
} }
/**
* prevent the instance from being cloned (which would create a second instance of it)
*/
private function __clone()
{
}
/** /**
* prevent from being unserialized (which would create a second instance of it) * prevent from being unserialized (which would create a second instance of it)
*/ */