phpstan level 3, fixed deprecations, code cleanup (#811)
This commit is contained in:
@@ -23,7 +23,7 @@ use App\Utils\LocaleSettings;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
use Symfony\Component\Translation\TranslatorInterface;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
||||
abstract class AbstractRendererTest extends KernelTestCase
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@ use App\Utils\LocaleSettings;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
use Symfony\Component\Translation\TranslatorInterface;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
||||
abstract class AbstractRendererTest extends KernelTestCase
|
||||
{
|
||||
|
||||
@@ -196,7 +196,8 @@ class ExtensionsTest extends TestCase
|
||||
$this->assertEquals('00:00 h', $sut->duration('0'));
|
||||
|
||||
$sut = $this->getSut($this->localeEn, 'en');
|
||||
$this->assertNull($sut->duration(null));
|
||||
|
||||
$this->assertEquals('00:00 h', $sut->duration(null));
|
||||
}
|
||||
|
||||
protected function getTimesheet($seconds)
|
||||
|
||||
Reference in New Issue
Block a user