mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add return types to test methods
This commit is contained in:
@@ -121,7 +121,7 @@ class FunctionsTest extends TestCase
|
||||
$this->assertEquals(time() + 86400, Time::parseAt('+1 day'));
|
||||
}
|
||||
|
||||
public function testNumberCast()
|
||||
public function testNumberCast(): void
|
||||
{
|
||||
$this->assertSame(-14.3, Number::cast(-14.3));
|
||||
$this->assertSame(0, Number::cast('b -35')); // cast must start with the number as old style php cast did
|
||||
|
||||
Reference in New Issue
Block a user