mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-19 14:36:48 +00:00
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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user