mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-23 09:12:34 +01:00
add visibility declaration to __construct
This commit is contained in:
parent
1f7138cde1
commit
1a6152772d
@ -24,7 +24,7 @@ class User implements \SplSubject
|
||||
*/
|
||||
protected $observers;
|
||||
|
||||
function __construct()
|
||||
public function __construct()
|
||||
{
|
||||
$this->observers = new \SplObjectStorage();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user