mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-24 20:38:20 +00:00
Scrutinizer really sucks!!!
Stop a few of scrutinizers complaints about 100% valid use of PHP variadics. Hopefully, this issue will cease to be an issue when we can specify mixed datatype for variadic arguments in the tests
This commit is contained in:
@@ -66,7 +66,7 @@ class DateValueTest extends TestCase
|
||||
$expectedResult = $this->parseTemplatedExpectation($expectedResult);
|
||||
}
|
||||
|
||||
$result = DateValue::fromString(...$args);
|
||||
$result = DateValue::fromString(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1.0e-8);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ class DayTest extends TestCase
|
||||
*/
|
||||
public function testDirectCallToDAY($expectedResultExcel, ...$args): void
|
||||
{
|
||||
$result = DateParts::day(...$args);
|
||||
$result = DateParts::day(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertSame($expectedResultExcel, $result);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ class Days360Test extends TestCase
|
||||
*/
|
||||
public function testDirectCallToDAYS360($expectedResult, ...$args): void
|
||||
{
|
||||
$result = Days360::between(...$args);
|
||||
$result = Days360::between(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertSame($expectedResult, $result);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ class HourTest extends TestCase
|
||||
*/
|
||||
public function testDirectCallToHOUR($expectedResult, ...$args): void
|
||||
{
|
||||
$result = TimeParts::hour(...$args);
|
||||
$result = TimeParts::hour(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertSame($expectedResult, $result);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ class IsoWeekNumTest extends TestCase
|
||||
*/
|
||||
public function testDirectCallToISOWEEKNUM($expectedResult, ...$args): void
|
||||
{
|
||||
$result = Week::isoWeekNumber(...$args);
|
||||
$result = Week::isoWeekNumber(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertSame($expectedResult, $result);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ class MinuteTest extends TestCase
|
||||
*/
|
||||
public function testDirectCallToMINUTE($expectedResult, ...$args): void
|
||||
{
|
||||
$result = TimeParts::MINUTE(...$args);
|
||||
$result = TimeParts::MINUTE(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertSame($expectedResult, $result);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ class MonthTest extends TestCase
|
||||
*/
|
||||
public function testDirectCallToMONTH($expectedResultExcel, ...$args): void
|
||||
{
|
||||
$result = DateParts::month(...$args);
|
||||
$result = DateParts::month(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertSame($expectedResultExcel, $result);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class SecondTest extends TestCase
|
||||
*/
|
||||
public function testDirectCallToSECOND($expectedResult, ...$args): void
|
||||
{
|
||||
$result = TimeParts::second(...$args);
|
||||
$result = TimeParts::second(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertSame($expectedResult, $result);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ class TimeValueTest extends TestCase
|
||||
*/
|
||||
public function testDirectCallToTIMEVALUE($expectedResult, ...$args): void
|
||||
{
|
||||
$result = TimeValue::fromString(...$args);
|
||||
$result = TimeValue::fromString(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1.0e-8);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class WeekDayTest extends TestCase
|
||||
*/
|
||||
public function testDirectCallToWEEKDAY($expectedResult, ...$args): void
|
||||
{
|
||||
$result = Week::day(...$args);
|
||||
$result = Week::day(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertSame($expectedResult, $result);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ class WeekNumTest extends TestCase
|
||||
*/
|
||||
public function testDirectCallToWEEKNUM($expectedResult, ...$args): void
|
||||
{
|
||||
$result = Week::number(...$args);
|
||||
$result = Week::number(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertSame($expectedResult, $result);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class YearTest extends TestCase
|
||||
*/
|
||||
public function testDirectCallToYEAR($expectedResultExcel, ...$args): void
|
||||
{
|
||||
$result = DateParts::year(...$args);
|
||||
$result = DateParts::year(/** @scrutinizer ignore-type */ ...$args);
|
||||
self::assertSame($expectedResultExcel, $result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user