1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix substr return in Union::__toString

This commit is contained in:
Matthew Brown 2018-05-09 01:13:25 -04:00
parent 242f46ac35
commit 31121cfc6d

View File

@ -125,7 +125,7 @@ class Union
$s .= $type . '|';
}
return substr($s, 0, -1);
return substr($s, 0, -1) ?: '';
}
/**