Skip to content

Commit

Permalink
Improve some URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Arman-Hosseini authored and nicolas-grekas committed Aug 8, 2019
1 parent 9749616 commit f520e3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Encoder/JsonDecode.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __construct($associative = false, $depth = 512)
*
* @throws NotEncodableValueException
*
* @see http://php.net/json_decode json_decode
* @see https://php.net/json_decode
*/
public function decode($data, $format, array $context = [])
{
Expand Down
2 changes: 1 addition & 1 deletion Normalizer/DateTimeNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function denormalize($data, $class, $format = null, array $context = [])

if (null !== $dateTimeFormat) {
if (null === $timezone && \PHP_VERSION_ID < 70000) {
// https://bugs.php.net/bug.php?id=68669
// https://bugs.php.net/68669
$object = \DateTime::class === $class ? \DateTime::createFromFormat($dateTimeFormat, $data) : \DateTimeImmutable::createFromFormat($dateTimeFormat, $data);
} else {
$object = \DateTime::class === $class ? \DateTime::createFromFormat($dateTimeFormat, $data, $timezone) : \DateTimeImmutable::createFromFormat($dateTimeFormat, $data, $timezone);
Expand Down

0 comments on commit f520e3e

Please sign in to comment.