X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fbrowser-kit%2FCookie.php;fp=vendor%2Fsymfony%2Fbrowser-kit%2FCookie.php;h=8857b62317b42a03504b324b58f9d85f7f5467dd;hp=1afd8da5f8e353d7775ba90a6985e73f9e892249;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/symfony/browser-kit/Cookie.php b/vendor/symfony/browser-kit/Cookie.php index 1afd8da5f..8857b6231 100644 --- a/vendor/symfony/browser-kit/Cookie.php +++ b/vendor/symfony/browser-kit/Cookie.php @@ -169,7 +169,7 @@ class Cookie continue; } - if (2 === count($elements = explode('=', $part, 2))) { + if (2 === \count($elements = explode('=', $part, 2))) { if ('expires' === strtolower($elements[0])) { $elements[1] = self::parseDate($elements[1]); } @@ -193,7 +193,7 @@ class Cookie private static function parseDate($dateValue) { // trim single quotes around date if present - if (($length = strlen($dateValue)) > 1 && "'" === $dateValue[0] && "'" === $dateValue[$length - 1]) { + if (($length = \strlen($dateValue)) > 1 && "'" === $dateValue[0] && "'" === $dateValue[$length - 1]) { $dateValue = substr($dateValue, 1, -1); }