Run Rector on your code to see what it can do for you:
<?php class UserControllerTest extends \PHPUnit\Framework\TestCase { - /** - * @testWith ["2", 2, "null", "true", "false", true, false] - * ["benjamin.sisko@ds9.example.com"] - */ + #[\PHPUnit\Framework\Attributes\TestWith([2, 2, null, true, false, true, false])] + #[\PHPUnit\Framework\Attributes\TestWith(['benjamin.sisko@ds9.example.com'])] public function testSomething(string $userId): void { } }
Applied Rules:
Is the result wrong?
rector.php