mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore: fixes test suite
This commit is contained in:
@ -14,7 +14,6 @@ parameters:
|
|||||||
|
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
- "#type mixed is not subtype of native#"
|
- "#type mixed is not subtype of native#"
|
||||||
- "#Undefined variable: \\$this#"
|
|
||||||
- "#is not allowed to extend#"
|
- "#is not allowed to extend#"
|
||||||
- "#Language construct eval#"
|
- "#Language construct eval#"
|
||||||
- "# with null as default value#"
|
- "# with null as default value#"
|
||||||
|
|||||||
@ -142,6 +142,7 @@ final class TestCaseFactory
|
|||||||
$proxies->proxy($this);
|
$proxies->proxy($this);
|
||||||
$chains->chain($this);
|
$chains->chain($this);
|
||||||
|
|
||||||
|
/* @phpstan-ignore-next-line */
|
||||||
return call_user_func(Closure::bind($factoryTest, $this, get_class($this)), ...func_get_args());
|
return call_user_func(Closure::bind($factoryTest, $this, get_class($this)), ...func_get_args());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,9 @@ final class ChainableClosure
|
|||||||
public static function from(Closure $closure, Closure $next): Closure
|
public static function from(Closure $closure, Closure $next): Closure
|
||||||
{
|
{
|
||||||
return function () use ($closure, $next): void {
|
return function () use ($closure, $next): void {
|
||||||
|
/* @phpstan-ignore-next-line */
|
||||||
call_user_func_array(Closure::bind($closure, $this, get_class($this)), func_get_args());
|
call_user_func_array(Closure::bind($closure, $this, get_class($this)), func_get_args());
|
||||||
|
/* @phpstan-ignore-next-line */
|
||||||
call_user_func_array(Closure::bind($next, $this, get_class($this)), func_get_args());
|
call_user_func_array(Closure::bind($next, $this, get_class($this)), func_get_args());
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -79,6 +79,7 @@ final class Container
|
|||||||
|
|
||||||
if ($candidate === null) {
|
if ($candidate === null) {
|
||||||
$type = $param->getType();
|
$type = $param->getType();
|
||||||
|
/* @phpstan-ignore-next-line */
|
||||||
if ($type !== null && $type->isBuiltin()) {
|
if ($type !== null && $type->isBuiltin()) {
|
||||||
$candidate = $param->getName();
|
$candidate = $param->getName();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user