diff --git a/tests/CityDataTest.php b/tests/CityDataTest.php
index <HASH>..<HASH> 100644
--- a/tests/CityDataTest.php
+++ b/tests/CityDataTest.php
@@ -146,6 +146,7 @@ final class CityDataTest extends \PHPUnit\Framework\TestCase
 
     public function testExtendedClassV2()
     {
+        $this->expectException(\TypeError::class);
         $this->expectExceptionMessageRegExp('#Invalid type: expected "plz" to be of type {string}, instead got value "NULL"#');
 
         $modelMeta = BigCityData::meta();
[+]: search for PhpDoc @property in parent classes <I>