~tcuthbert/wordpress/openstack-objectstorage-k8s

« back to all changes in this revision

Viewing changes to vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php

  • Committer: Thomas Cuthbert
  • Date: 2020-04-23 05:22:45 UTC
  • Revision ID: thomas.cuthbert@canonical.com-20200423052245-1jxao3mw31w435js
[,r=trivial] bionic composer vendor update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
 
3
2
namespace GuzzleHttp\Cookie;
4
3
 
 
4
use GuzzleHttp\Utils;
 
5
 
5
6
/**
6
7
 * Persists non-session cookies using a JSON formatted file
7
8
 */
73
74
            // @codeCoverageIgnoreEnd
74
75
        }
75
76
 
76
 
        $data = \GuzzleHttp\json_decode($json, true);
 
77
        $data = Utils::jsonDecode($json, true);
77
78
        if (is_array($data)) {
78
 
            foreach (\GuzzleHttp\json_decode($json, true) as $cookie) {
 
79
            foreach (Utils::jsonDecode($json, true) as $cookie) {
79
80
                $this->setCookie(new SetCookie($cookie));
80
81
            }
81
82
        } elseif (strlen($data)) {