Skip to content

Commit 7b0d5e3

Browse files
committed
Merge branch '5.1'
* 5.1: account for is_numeric() behavior changes in PHP 8 fix expected exception messages on PHP 8
2 parents e0ed56b + d24a181 commit 7b0d5e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Cache/Tests/Adapter/MemcachedAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testBadOptions($name, $value)
7676
$this->expectExceptionMessage('constant(): Couldn\'t find constant Memcached::');
7777
} else {
7878
$this->expectException('Error');
79-
$this->expectExceptionMessage('Undefined class constant \'Memcached::');
79+
$this->expectExceptionMessage('Undefined constant Memcached::');
8080
}
8181

8282
MemcachedAdapter::createConnection([], [$name => $value]);

src/Symfony/Component/Yaml/Inline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public static function dump($value, int $flags = 0): string
161161
return 'false';
162162
case ctype_digit($value):
163163
return \is_string($value) ? "'$value'" : (int) $value;
164-
case is_numeric($value):
164+
case is_numeric($value) && false === strpos($value, "\n"):
165165
$locale = setlocale(LC_NUMERIC, 0);
166166
if (false !== $locale) {
167167
setlocale(LC_NUMERIC, 'C');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy