mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 16:27:23 +01:00
chore: improves type coverage
This commit is contained in:
@ -97,7 +97,7 @@ final class TestCaseMethodFactory
|
||||
$testCase->chains->chain($this);
|
||||
$method->chains->chain($this);
|
||||
|
||||
return \Pest\Support\Closure::bind($closure, $this, $this::class)(...func_get_args());
|
||||
return \Pest\Support\Closure::bind($closure, $this, self::class)(...func_get_args());
|
||||
};
|
||||
}
|
||||
|
||||
@ -147,11 +147,11 @@ final class TestCaseMethodFactory
|
||||
}
|
||||
|
||||
$annotations = implode('', array_map(
|
||||
static fn ($annotation) => sprintf("\n * %s", $annotation), $annotations,
|
||||
static fn ($annotation): string => sprintf("\n * %s", $annotation), $annotations,
|
||||
));
|
||||
|
||||
$attributes = implode('', array_map(
|
||||
static fn ($attribute) => sprintf("\n %s", $attribute), $attributes,
|
||||
static fn ($attribute): string => sprintf("\n %s", $attribute), $attributes,
|
||||
));
|
||||
|
||||
return <<<PHP
|
||||
|
||||
Reference in New Issue
Block a user