mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 08:17:22 +01:00
Migrates to Pint
This commit is contained in:
@ -18,7 +18,7 @@ final class ChainableClosure
|
||||
public static function from(Closure $closure, Closure $next): Closure
|
||||
{
|
||||
return function () use ($closure, $next): void {
|
||||
if (!is_object($this)) { // @phpstan-ignore-line
|
||||
if (! is_object($this)) { // @phpstan-ignore-line
|
||||
throw ShouldNotHappen::fromMessage('$this not bound to chainable closure.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user