We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 810e72b + cf02e05 commit cbb3727Copy full SHA for cbb3727
tests/unit/UtilTest.php
@@ -314,8 +314,13 @@ public function testMul(): void
314
}
315
316
foreach ($arguments as $arg) {
317
+ $product = $arg[0] * $arg[1];
318
+ if (is_float($product)) {
319
+ // Int-to-float is deprecated as of 8.1; this test case is bogus
320
+ continue;
321
+ }
322
$this->assertSame(
- (int) ($arg[0] * $arg[1]),
323
+ (int) $product,
324
ParagonIE_Sodium_Core_Util::mul($arg[0], $arg[1]),
325
'Multiplying ' . $arg[0] . ' by ' . $arg[1] . ' failed.'
326
);
0 commit comments