Skip to content

Commit

Permalink
Merge branch '4.4' into 5.4
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
derrabus committed May 27, 2022
2 parents 63249eb + 4a7a3a3 commit 8fc03ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Instantiator.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ final class Instantiator
* Bar::class => ['privateBarProperty' => $propertyValue],
* ]);
*
* Instances of ArrayObject, ArrayIterator and SplObjectHash can be created
* Instances of ArrayObject, ArrayIterator and SplObjectStorage can be created
* by using the special "\0" property name to define their internal value:
*
* // creates an SplObjectHash where $info1 is attached to $obj1, etc.
* // creates an SplObjectStorage where $info1 is attached to $obj1, etc.
* Instantiator::instantiate(SplObjectStorage::class, ["\0" => [$obj1, $info1, $obj2, $info2...]]);
*
* // creates an ArrayObject populated with $inputArray
Expand Down
2 changes: 1 addition & 1 deletion Internal/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static function prepare($values, $objectsPool, &$refsPool, &$objectsCount
$arrayValue = (array) $value;
} elseif ($value instanceof \Serializable
|| $value instanceof \__PHP_Incomplete_Class
|| PHP_VERSION_ID < 80200 && $value instanceof \DatePeriod
|| \PHP_VERSION_ID < 80200 && $value instanceof \DatePeriod
) {
++$objectsCount;
$objectsPool[$value] = [$id = \count($objectsPool), serialize($value), [], 0];
Expand Down

0 comments on commit 8fc03ee

Please sign in to comment.