Rector AddParamTypeBasedOnPHPUnitDataProviderRector

And quite a bit more manual changes. The idea is that typing of our
tests can be a bit more loose, so we assume PHPDoc is mostly correct. If
that happens to be wrong, it should be caught by the tests themselves.
This commit is contained in:
Adrien Crivelli
2023-09-07 17:00:24 +08:00
parent 14d402ec93
commit 1b05dfab8b
460 changed files with 857 additions and 2709 deletions
@@ -8,11 +8,9 @@ use PHPUnit\Framework\TestCase;
class ErrorCodeMapTest extends TestCase
{
/**
* @param bool|string $expected
*
* @dataProvider errorCodeMapProvider
*/
public function testErrorCode($expected, int $index): void
public function testErrorCode(bool|string $expected, int $index): void
{
self::assertSame($expected, ErrorCode::lookup($index));
}