From 7dc2b039e9a1f5c44d226b1c11df9dc8ce8229c6 Mon Sep 17 00:00:00 2001 From: Andrej Rypo Date: Sun, 6 Dec 2020 23:13:56 +0100 Subject: [PATCH] corrected syntax for 7.2 & 7.3 --- tests/LampTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/LampTest.php b/tests/LampTest.php index 7af2e4f..4b05f4f 100644 --- a/tests/LampTest.php +++ b/tests/LampTest.php @@ -18,7 +18,9 @@ final class LampTest extends TestCase public function testRubbing(): void { - $lamp = new Lamp($c = new Sleeve(), $core = fn() => null); + $lamp = new Lamp($c = new Sleeve(), $core = function () { + return null; + }); $g = $lamp->rub();