Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 208b9e5

Browse files
committed
Fix "A non well formed numeric value encountered" with PHP 7.1
1 parent 79f076a commit 208b9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/File/Size.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ protected function fromByteString($size)
331331

332332
$value = substr($size, 0, -1);
333333
if (!is_numeric($value)) {
334-
$value = substr($value, 0, -1);
334+
$value = trim(substr($value, 0, -1));
335335
}
336336

337337
switch (strtoupper($type)) {

0 commit comments

Comments
 (0)