mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix substr return in Union::__toString
This commit is contained in:
parent
242f46ac35
commit
31121cfc6d
@ -125,7 +125,7 @@ class Union
|
||||
$s .= $type . '|';
|
||||
}
|
||||
|
||||
return substr($s, 0, -1);
|
||||
return substr($s, 0, -1) ?: '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user