Improvements

This commit is contained in:
dbpolito
2026-02-11 18:09:09 -03:00
parent 6966802afc
commit b081584ab6
2 changed files with 10 additions and 1 deletions

View File

@ -360,7 +360,7 @@ trait Testable
}
$parameterType = is_string($argumentIndex)
? ($testParameterTypesByName[$argumentIndex] ?? 'mixed')
? $testParameterTypesByName[$argumentIndex]
: $testParameterTypes[$argumentIndex];
if (in_array($parameterType, [Closure::class, 'callable', 'mixed'])) {