Adding () after static keyword to make it clearer this is instantiating a new object

This commit is contained in:
Simon R Jones
2013-05-31 15:43:46 +01:00
parent dc059e9858
commit 4d2fcc80e7

View File

@@ -82,7 +82,7 @@ class Singleton
{ {
static $instance = null; static $instance = null;
if (null === $instance) { if (null === $instance) {
$instance = new static; $instance = new static();
} }
return $instance; return $instance;