Skip to content

Commit 5c7814d

Browse files
Merge branch '6.4' into 7.0
* 6.4: Fix implicitly-required parameters minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench) Fix bad merge List CS fix in .git-blame-ignore-revs Fix implicitly-required parameters List CS fix in .git-blame-ignore-revs Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value [Messenger][AmazonSqs] Allow async-aws/sqs version 2
2 parents 740e8cb + dd22c92 commit 5c7814d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

PropertyAccessor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class PropertyAccessor implements PropertyAccessorInterface
7979
* @param int $throw A bitwise combination of the THROW_* constants
8080
* to specify when exceptions should be thrown
8181
*/
82-
public function __construct(int $magicMethods = self::MAGIC_GET | self::MAGIC_SET, int $throw = self::THROW_ON_INVALID_PROPERTY_PATH, CacheItemPoolInterface $cacheItemPool = null, PropertyReadInfoExtractorInterface $readInfoExtractor = null, PropertyWriteInfoExtractorInterface $writeInfoExtractor = null)
82+
public function __construct(int $magicMethods = self::MAGIC_GET | self::MAGIC_SET, int $throw = self::THROW_ON_INVALID_PROPERTY_PATH, ?CacheItemPoolInterface $cacheItemPool = null, ?PropertyReadInfoExtractorInterface $readInfoExtractor = null, ?PropertyWriteInfoExtractorInterface $writeInfoExtractor = null)
8383
{
8484
$this->magicMethodsFlags = $magicMethods;
8585
$this->ignoreInvalidIndices = 0 === ($throw & self::THROW_ON_INVALID_INDEX);
@@ -184,7 +184,7 @@ public function setValue(object|array &$objectOrArray, string|PropertyPathInterf
184184
}
185185
}
186186

187-
private static function throwInvalidArgumentException(string $message, array $trace, int $i, string $propertyPath, \Throwable $previous = null): void
187+
private static function throwInvalidArgumentException(string $message, array $trace, int $i, string $propertyPath, ?\Throwable $previous = null): void
188188
{
189189
if (!isset($trace[$i]['file']) || __FILE__ !== $trace[$i]['file']) {
190190
return;
@@ -652,7 +652,7 @@ private function getPropertyPath(string|PropertyPath $propertyPath): PropertyPat
652652
*
653653
* @throws \LogicException When the Cache Component isn't available
654654
*/
655-
public static function createCache(string $namespace, int $defaultLifetime, string $version, LoggerInterface $logger = null): AdapterInterface
655+
public static function createCache(string $namespace, int $defaultLifetime, string $version, ?LoggerInterface $logger = null): AdapterInterface
656656
{
657657
if (!class_exists(ApcuAdapter::class)) {
658658
throw new \LogicException(sprintf('The Symfony Cache component must be installed to use "%s()".', __METHOD__));

PropertyPathBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class PropertyPathBuilder
2121
private array $elements = [];
2222
private array $isIndex = [];
2323

24-
public function __construct(PropertyPathInterface|string $path = null)
24+
public function __construct(PropertyPathInterface|string|null $path = null)
2525
{
2626
if (null !== $path) {
2727
$this->append($path);
@@ -122,7 +122,7 @@ public function replace(int $offset, int $length, PropertyPathInterface|string $
122122
*
123123
* @throws OutOfBoundsException If the offset is invalid
124124
*/
125-
public function replaceByIndex(int $offset, string $name = null): void
125+
public function replaceByIndex(int $offset, ?string $name = null): void
126126
{
127127
if (!isset($this->elements[$offset])) {
128128
throw new OutOfBoundsException(sprintf('The offset "%s" is not within the property path.', $offset));
@@ -140,7 +140,7 @@ public function replaceByIndex(int $offset, string $name = null): void
140140
*
141141
* @throws OutOfBoundsException If the offset is invalid
142142
*/
143-
public function replaceByProperty(int $offset, string $name = null): void
143+
public function replaceByProperty(int $offset, ?string $name = null): void
144144
{
145145
if (!isset($this->elements[$offset])) {
146146
throw new OutOfBoundsException(sprintf('The offset "%s" is not within the property path.', $offset));

0 commit comments

Comments
 (0)