Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit e1702ae

Browse files
XiaoningLiuvinjiang
authored andcommitted
Fixed a syntax error for PHP 5.5 and 5.6 in MicrosoftAzure\Storage\Common\Internal::Utilities:isoDate.
1 parent 1923fd4 commit e1702ae

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2017.09 - version 0.19.1
2+
3+
ALL
4+
* Fixed a syntax error for PHP 5.5 and 5.6 in `MicrosoftAzure\Storage\Common\Internal::Utilities:isoDate`.
5+
16
2017.09 - version 0.19.0
27

38
ALL

src/Common/Internal/Resources.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class Resources
307307
const DEAFULT_RETRY_INTERVAL = 1000;//Milliseconds
308308

309309
// Header values
310-
const SDK_VERSION = '0.19.0';
310+
const SDK_VERSION = '0.19.1';
311311
const STORAGE_API_LATEST_VERSION = '2016-05-31';
312312
const DATA_SERVICE_VERSION_VALUE = '3.0';
313313
const MAX_DATA_SERVICE_VERSION_VALUE = '3.0;NetFx';

src/Common/Internal/Utilities.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ public static function rfc1123ToDateTime($date)
374374
*/
375375
public static function isoDate(\DateTimeInterface $date)
376376
{
377-
$date = (clone $date)->setTimezone(new \DateTimeZone('UTC'));
377+
$date = clone $date;
378+
$date = $date->setTimezone(new \DateTimeZone('UTC'));
378379

379380
return str_replace('+00:00', 'Z', $date->format('c'));
380381
}

tests/Unit/Blob/Models/CopyBlobOptionsTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ public function testSetIsIncrementalCopy()
140140
}
141141

142142
/**
143-
* @covers MicrosoftAzure\Storage\Blob\Models\CopyBlobFromURLOptions::setSourceSnapshot
144-
* @covers MicrosoftAzure\Storage\Blob\Models\CopyBlobFromURLOptions::getSourceSnapshot
145143
* @covers MicrosoftAzure\Storage\Blob\Models\CopyBlobOptions::setSourceSnapshot
146144
* @covers MicrosoftAzure\Storage\Blob\Models\CopyBlobOptions::getSourceSnapshot
147145
*/

0 commit comments

Comments
 (0)