mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +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()
|
||||
*/
|
||||
public function update(SplSubject $subject)
|
||||
public function update(SplSubject $subject): void
|
||||
{
|
||||
$this->changedUsers[] = clone $subject;
|
||||
}
|
||||
|
Reference in New Issue
Block a user