Skip to content

Commit 8fc03ee

Browse files
committed
Merge branch '4.4' into 5.4
* 4.4: Fix typo CS fix Bump Symfony version to 4.4.43 Update VERSION for 4.4.42 Update CONTRIBUTORS for 4.4.42 Update CHANGELOG for 4.4.42
2 parents 63249eb + 4a7a3a3 commit 8fc03ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Instantiator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ final class Instantiator
3939
* Bar::class => ['privateBarProperty' => $propertyValue],
4040
* ]);
4141
*
42-
* Instances of ArrayObject, ArrayIterator and SplObjectHash can be created
42+
* Instances of ArrayObject, ArrayIterator and SplObjectStorage can be created
4343
* by using the special "\0" property name to define their internal value:
4444
*
45-
* // creates an SplObjectHash where $info1 is attached to $obj1, etc.
45+
* // creates an SplObjectStorage where $info1 is attached to $obj1, etc.
4646
* Instantiator::instantiate(SplObjectStorage::class, ["\0" => [$obj1, $info1, $obj2, $info2...]]);
4747
*
4848
* // creates an ArrayObject populated with $inputArray

Internal/Exporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static function prepare($values, $objectsPool, &$refsPool, &$objectsCount
108108
$arrayValue = (array) $value;
109109
} elseif ($value instanceof \Serializable
110110
|| $value instanceof \__PHP_Incomplete_Class
111-
|| PHP_VERSION_ID < 80200 && $value instanceof \DatePeriod
111+
|| \PHP_VERSION_ID < 80200 && $value instanceof \DatePeriod
112112
) {
113113
++$objectsCount;
114114
$objectsPool[$value] = [$id = \count($objectsPool), serialize($value), [], 0];

0 commit comments

Comments
 (0)