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