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

View File

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

View File

@ -458,7 +458,6 @@ test('after describe block with named dataset', function (...$args) {
expect($args)->toBe(['after']);
})->with('after-describe');
// Named parameters on datasets
test('named parameters match by parameter name', function (string $email, string $name) {
expect($name)->toBe('Taylor');
expect($email)->toBe('taylor@laravel.com');