Skip to content

Commit 99ff70c

Browse files
committedNov 30, 2024·
Finalize
1 parent 12e5f79 commit 99ff70c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎bin/gen_callmap.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ function assertParameter(array &$normalizedEntry, ReflectionParameter $param): v
115115
$expectedType = $param->getType();
116116

117117
if (isset($expectedType) && !empty($normalizedEntry['type'])) {
118-
assertTypeValidity($expectedType, $normalizedEntry['type'], "Param '{$name}'");
118+
$func = $param->getDeclaringFunction()->getName();
119+
assertTypeValidity($expectedType, $normalizedEntry['type'], "Param $func '{$name}'");
119120
}
120121
}
121122

@@ -159,6 +160,7 @@ function assertTypeValidity(ReflectionType $reflected, string &$specified, strin
159160
$callMapType->removeType('null');
160161
}
161162
}
163+
$specified = $callMapType->getId(true);
162164
// //$this->assertSame($expectedType->hasBool(), $callMapType->hasBool(), "{$msgPrefix} type '{$specified}' missing bool from reflected type '{$reflected}'");
163165
// $this->assertSame($expectedType->hasArray(), $callMapType->hasArray(), "{$msgPrefix} type '{$specified}' missing array from reflected type '{$reflected}'");
164166
// $this->assertSame($expectedType->hasInt(), $callMapType->hasInt(), "{$msgPrefix} type '{$specified}' missing int from reflected type '{$reflected}'");

0 commit comments

Comments
 (0)
Please sign in to comment.