diff --git a/generator/tests/PhpStanFunctions/PhpStanTypeTest.php b/generator/tests/PhpStanFunctions/PhpStanTypeTest.php
index 1fc861aa..362ce71d 100644
--- a/generator/tests/PhpStanFunctions/PhpStanTypeTest.php
+++ b/generator/tests/PhpStanFunctions/PhpStanTypeTest.php
@@ -112,7 +112,11 @@ public function testVoid(): void
     {
         $param = new PhpStanType('');
         $this->assertEquals('', $param->getDocBlockType());
-        $this->assertEquals('void', $param->getSignatureType());
+		if (PHP_VERSION_ID >= 80100) {
+        	$this->assertEquals('void', $param->getSignatureType());
+		} else {
+        	$this->assertEquals('', $param->getSignatureType());
+		}
 
         $param = new PhpStanType('void');
         $this->assertEquals('void', $param->getDocBlockType());