mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
add visibility declaration to __construct
This commit is contained in:
@@ -24,7 +24,7 @@ class User implements \SplSubject
|
||||
*/
|
||||
protected $observers;
|
||||
|
||||
function __construct()
|
||||
public function __construct()
|
||||
{
|
||||
$this->observers = new \SplObjectStorage();
|
||||
}
|
||||
|
Reference in New Issue
Block a user