Improve generator Type exception #151
check.yml
on: push
check
/
composer
18s
check
/
php-cs-fixer
20s
check
/
rector
27s
check
/
infection
39s
Matrix: check / phpstan
Matrix: check / psalm
Matrix: check / test
Annotations
1 error and 1 warning
|
check / infection
Process completed with exit code 1.
|
|
check / infection:
src/Type/Visitor/Stringify.php#L99
Escaped Mutant for Mutator "Coalesce":
@@ @@
*/
public function safe(Type $type): string
{
- return $type->accept($this->next->get() ?? $this);
+ return $type->accept($this ?? $this->next->get());
}
/**
* @return non-empty-string
|