From: Tim Düsterhus Date: Fri, 28 Oct 2022 14:42:03 +0000 (+0200) Subject: Add explicit `void` return type to ValueDumpListener::__invoke() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f167f2ac820fc058791b352c4e0f3a212769f5e8;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Add explicit `void` return type to ValueDumpListener::__invoke() --- diff --git a/docs/migration/wsc54/php.md b/docs/migration/wsc54/php.md index e3f3683a..c146335a 100644 --- a/docs/migration/wsc54/php.md +++ b/docs/migration/wsc54/php.md @@ -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()); } } ```