mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-02 13:07:27 +02:00
refactor: add void return type of update user observer
This commit is contained in:
@@ -15,7 +15,7 @@ class UserObserver implements SplObserver
|
|||||||
/**
|
/**
|
||||||
* It is called by the Subject, usually by SplSubject::notify()
|
* It is called by the Subject, usually by SplSubject::notify()
|
||||||
*/
|
*/
|
||||||
public function update(SplSubject $subject)
|
public function update(SplSubject $subject): void
|
||||||
{
|
{
|
||||||
$this->changedUsers[] = clone $subject;
|
$this->changedUsers[] = clone $subject;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user