Add explicit `void` return type to ValueDumpListener::__invoke()
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 28 Oct 2022 14:42:03 +0000 (16:42 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Oct 2022 14:42:03 +0000 (16:42 +0200)
docs/migration/wsc54/php.md

index e3f3683a03a93c6c6dfe65e1a4c3f1cf2d9a7634..c146335ac6fa0d79338e14dbdd798c29b710d215 100644 (file)
@@ -216,9 +216,9 @@ use wcf\system\foo\event\ValueAvailable;
 
 final class ValueDumpListener
 {
-    public function __invoke(ValueAvailable $event)
+    public function __invoke(ValueAvailable $event): void
     {
-        var_dump($event->getValue());
+        \var_dump($event->getValue());
     }
 }
 ```