Run Rector on your code to see what it can do for you:
self::assertSame(1, 1); $test = [ - 'unlink' => static fn ($path) => self::assertSame('/tmp/path/to/file.zip', $path), + 'unlink' => static fn ($path) => $this->assertSame('/tmp/path/to/file.zip', $path), ]; } }
Applied Rules:
Not a change you expect?
rector.php