Fixed some errors introduced by earlier typings

This commit is contained in:
Jan Böhmer 2023-06-18 16:01:28 +02:00
parent b7c8ca2a48
commit cbdf0a9392
6 changed files with 6 additions and 18 deletions

View file

@ -65,12 +65,4 @@ class TwigCoreExtensionTest extends WebTestCase
$this->assertEqualsCanonicalizing(['test' => 1, 'test4' => 7], $this->service->toArray($obj));
}
public function testToArrayException(): void
{
//When passing a simple scalar value a exception should be thrown.
$this->expectException(\InvalidArgumentException::class);
$this->service->toArray(1);
}
}