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

Commit 019b656

Browse files
committed
Merge pull request #136 from remicollet/php71
Fix for upcoming new PHP versions
2 parents 0c0171a + 626964a commit 019b656

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
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)) {

test/TimezoneTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function locationProvider()
7373
['Europe/Copenhagen', true],
7474
['Indian/Maldives', true],
7575

76-
['anast', false], // abbreviation of Anadyr Summer Time
76+
['cest', false], // abbreviation of Anadyr Summer Time
7777

7878
['Asia/London', false], // wrong location
7979
['', false], // empty string
@@ -115,14 +115,11 @@ public function testAbbreviationsByTypeAsString($value, $valid)
115115
public function abbreviationProvider()
116116
{
117117
return [
118-
['anast', true], // Anadyr Summer Time
119118
['bnt', true], // Brunei Darussalam Time
120119
['cest', true], // Central European Summer Time
121120
['easst', true], // Easter Island Summer Time
122121
['egst', true], // Eastern Greenland Summer Time
123122
['hkt', true], // Hong Kong Time
124-
['irkst', true], // Irkutsk Summer Time
125-
['krast', true], // Krasnoyarsk Summer Time
126123
['nzdt', true], // New Zealand Daylight Time
127124
['sast', true], // South Africa Standard Time
128125

@@ -188,8 +185,6 @@ public function locationAndAbbreviationProvider()
188185
['Australia/Broken_Hill', true],
189186

190187
['hkt', true], // Hong Kong Time
191-
['irkst', true], // Irkutsk Summer Time
192-
['krast', true], // Krasnoyarsk Summer Time
193188
['nzdt', true], // New Zealand Daylight Time
194189
['sast', true], // South Africa Standard Time
195190

0 commit comments

Comments
 (0)