refactor: add void return type of update user observer

This commit is contained in:
Guilherme Siani
2021-07-04 22:31:58 -03:00
committed by GitHub
parent 3f84442528
commit db4b17c70e

View File

@@ -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;
}