Fixes stati analysis

This commit is contained in:
Italo
2022-07-27 14:29:24 -04:00
committed by GitHub
parent 8277b1dd36
commit d18c9dcc5a
4 changed files with 7 additions and 3 deletions

View File

@@ -415,7 +415,9 @@ class ByteBuffer implements JsonSerializable, Jsonable, Stringable
*/
public static function fromBase64(string $base64): static
{
if (false === $bin = base64_decode($base64)) {
$bin = base64_decode($base64);
if (false === $bin) {
throw new InvalidArgumentException('ByteBuffer: Invalid base64 string');
}