mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-23 09:12:34 +01:00
Merge pull request #438 from guilhermesiani/patch-2
refactor: add void return type of update user observer
This commit is contained in:
commit
b521db7c06
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user