Skip to content

Commit 46b2be9

Browse files
Merge branch '5.4' into 6.0
* 5.4: [ErrorHandler][Debug] Do not use the php80 polyfill #42229 update phpdoc to recommend createIndex over ensureIndex
2 parents c81561b + 4c11c62 commit 46b2be9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Component/ErrorHandler/BufferingLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __destruct()
5555
} elseif ($val instanceof \DateTimeInterface) {
5656
$message = str_replace("{{$key}}", $val->format(\DateTime::RFC3339), $message);
5757
} elseif (\is_object($val)) {
58-
$message = str_replace("{{$key}}", '[object '.\get_class($val).']', $message);
58+
$message = str_replace("{{$key}}", '[object '.get_debug_type($val).']', $message);
5959
} else {
6060
$message = str_replace("{{$key}}", '['.\gettype($val).']', $message);
6161
}

src/Symfony/Component/ErrorHandler/Exception/FlattenException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ private function flattenArgs(array $args, int $level = 0, int &$count = 0): arra
346346
if ($value instanceof \__PHP_Incomplete_Class) {
347347
$result[$key] = ['incomplete-object', $this->getClassNameFromIncomplete($value)];
348348
} elseif (\is_object($value)) {
349-
$result[$key] = ['object', \get_class($value)];
349+
$result[$key] = ['object', get_debug_type($value)];
350350
} elseif (\is_array($value)) {
351351
if ($level > 10) {
352352
$result[$key] = ['array', '*DEEP NESTED ARRAY*'];

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class MongoDbSessionHandler extends AbstractSessionHandler
5151
* A TTL collections can be used on MongoDB 2.2+ to cleanup expired sessions
5252
* automatically. Such an index can for example look like this:
5353
*
54-
* db.<session-collection>.ensureIndex(
54+
* db.<session-collection>.createIndex(
5555
* { "<expiry-field>": 1 },
5656
* { "expireAfterSeconds": 0 }
5757
* )

0 commit comments

Comments
 (0)