forked from mirror/Part-DB.Part-DB-server
Fixed some return type deprecation messages
This commit is contained in:
parent
558440168d
commit
1cee1abe00
37 changed files with 70 additions and 70 deletions
|
@ -39,13 +39,13 @@ class BigNumberNormalizerTest extends WebTestCase
|
|||
$this->service = self::getContainer()->get(BigNumberNormalizer::class);
|
||||
}
|
||||
|
||||
public function testNormalize()
|
||||
public function testNormalize(): void
|
||||
{
|
||||
$bigDecimal = BigDecimal::of('1.23456789');
|
||||
$this->assertSame('1.23456789', $this->service->normalize($bigDecimal));
|
||||
}
|
||||
|
||||
public function testSupportsNormalization()
|
||||
public function testSupportsNormalization(): void
|
||||
{
|
||||
//Normalizer must only support BigNumber objects (and child classes)
|
||||
$this->assertFalse($this->service->supportsNormalization(new \stdClass()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue