chore: fix phpstan bleeding edge errors

This commit is contained in:
Younes ENNAJI
2024-05-13 10:21:18 +01:00
parent 816529029b
commit 39f1f3885e
33 changed files with 752 additions and 707 deletions
@@ -29,7 +29,6 @@ final class BladeTemplateEngineTest extends TestCase
$result = $bladeTemplateEngine->render($name, $context);
$this->assertIsString($result);
$this->assertSame('rendered data', $result);
}
}
-2
View File
@@ -21,7 +21,6 @@ final class IdStampTest extends TestCase
{
// Test with null ID
$ifStamp = new IdStamp();
$this->assertIsString($ifStamp->getId());
// Test with known ID
$knownId = 'KnownID123';
@@ -37,7 +36,6 @@ final class IdStampTest extends TestCase
{
$ifStamp = new IdStamp();
$arrayRepresentation = $ifStamp->toArray();
$this->assertIsArray($arrayRepresentation);
$this->assertArrayHasKey('id', $arrayRepresentation);
$this->assertSame($arrayRepresentation['id'], $ifStamp->getId());
}
-1
View File
@@ -34,7 +34,6 @@ final class PluginStampTest extends TestCase
$result = $pluginStamp->toArray();
$this->assertIsArray($result);
$this->assertCount(1, $result);
$this->assertArrayHasKey('plugin', $result);
$this->assertSame($plugin, $result['plugin']);
-1
View File
@@ -17,7 +17,6 @@ final class MessagesTest extends TestCase
public function testGet(string $language, bool $empty): void
{
$actual = Messages::get($language);
$this->assertIsArray($actual);
$this->assertSame($empty, empty($actual));
}
-2
View File
@@ -48,7 +48,6 @@ final class SessionBagTest extends TestCase
$result = $this->sessionBag->get();
$this->assertIsArray($result);
$this->assertInstanceOf(Envelope::class, $result[0]);
}
@@ -78,7 +77,6 @@ final class SessionBagTest extends TestCase
$result = $this->sessionBag->get();
$this->assertIsArray($result);
$this->assertInstanceOf(Envelope::class, $result[0]);
}
}
@@ -38,7 +38,6 @@ final class FlasherTwigExtensionTest extends MockeryTestCase
{
$functions = $this->extension->getFunctions();
$this->assertIsArray($functions);
$this->assertCount(1, $functions);
$this->assertInstanceOf(TwigFunction::class, $functions[0]);
$this->assertSame('flasher_render', $functions[0]->getName());