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
@@ -64,11 +64,8 @@ class HtmlTest extends TestCase
/**
* @dataProvider providerCanReadVerySmallFile
*
* @param bool $expected
* @param string $content
*/
public function testCanReadVerySmallFile($expected, $content): void
public function testCanReadVerySmallFile(bool $expected, string $content): void
{
$filename = HtmlHelper::createHtml($content);
$reader = new Html();