Skip to content

Commit 3bcf436

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Use Composer InstalledVersions to check if flex is installed instead of existence of InstallRecipesCommand Improve readability of disallow_search_engine_index condition [DoctrineBridge] Fix UniqueEntityValidator Stringable identifiers [DoctrineBridge] Fix UniqueEntity for non-integer identifiers [Security] Avoid failing when PersistentRememberMeHandler handles a malformed cookie [PropertyAccess] Improve PropertyAccessor::setValue param docs fix asking for the retry option although --force was used [DoctrineBridge] Undefined variable
2 parents ff0a7f2 + 5499151 commit 3bcf436

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PropertyAccessor.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ public function getValue(object|array $objectOrArray, string|PropertyPathInterfa
109109
return $propertyValues[\count($propertyValues) - 1][self::VALUE];
110110
}
111111

112+
/**
113+
* @template T of object|array
114+
* @param T $objectOrArray
115+
* @param-out ($objectOrArray is array ? array : T) $objectOrArray
116+
*/
112117
public function setValue(object|array &$objectOrArray, string|PropertyPathInterface $propertyPath, mixed $value): void
113118
{
114119
if (\is_object($objectOrArray) && (false === strpbrk((string) $propertyPath, '.[') || $objectOrArray instanceof \stdClass && property_exists($objectOrArray, $propertyPath))) {

0 commit comments

Comments
 (0)