Skip to content

Commit

Permalink
Adding () after static keyword to make it clearer this is instantiati…
Browse files Browse the repository at this point in the history
…ng a new object
  • Loading branch information
simonrjones committed May 31, 2013
1 parent dc059e9 commit 4d2fcc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/Design-Patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Singleton
{
static $instance = null;
if (null === $instance) {
$instance = new static;
$instance = new static();
}
return $instance;
Expand Down

0 comments on commit 4d2fcc8

Please sign in to comment.