Skip to content

Commit a7a061a

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 b204c6b + 0435a08 commit a7a061a

File tree

16 files changed

+19
-19
lines changed

16 files changed

+19
-19
lines changed

Caster/Caster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Caster
4747
*
4848
* @param bool $hasDebugInfo Whether the __debugInfo method exists on $obj or not
4949
*/
50-
public static function castObject(object $obj, string $class, bool $hasDebugInfo = false, string $debugClass = null): array
50+
public static function castObject(object $obj, string $class, bool $hasDebugInfo = false, ?string $debugClass = null): array
5151
{
5252
if ($hasDebugInfo) {
5353
try {

Caster/ClassStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ClassStub extends ConstStub
2424
* @param string $identifier A PHP identifier, e.g. a class, method, interface, etc. name
2525
* @param callable $callable The callable targeted by the identifier when it is ambiguous or not a real PHP identifier
2626
*/
27-
public function __construct(string $identifier, callable|array|string $callable = null)
27+
public function __construct(string $identifier, callable|array|string|null $callable = null)
2828
{
2929
$this->value = $identifier;
3030

Caster/ConstStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class ConstStub extends Stub
2222
{
23-
public function __construct(string $name, string|int|float $value = null)
23+
public function __construct(string $name, string|int|float|null $value = null)
2424
{
2525
$this->class = $name;
2626
$this->value = 1 < \func_num_args() ? $value : $name;

Caster/FFICaster.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private static function castFFIFunction(Stub $stub, CType $type): array
9797
return [Caster::PREFIX_VIRTUAL.'returnType' => $returnType];
9898
}
9999

100-
private static function castFFIPointer(Stub $stub, CType $type, CData $data = null): array
100+
private static function castFFIPointer(Stub $stub, CType $type, ?CData $data = null): array
101101
{
102102
$ptr = $type->getPointerType();
103103

@@ -132,7 +132,7 @@ private static function castFFIStringValue(CData $data): string|CutStub
132132
return $stub;
133133
}
134134

135-
private static function castFFIStructLike(CType $type, CData $data = null): array
135+
private static function castFFIStructLike(CType $type, ?CData $data = null): array
136136
{
137137
$isUnion = ($type->getAttributes() & CType::ATTR_UNION) === CType::ATTR_UNION;
138138

Caster/LinkStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class LinkStub extends ConstStub
2323
private static array $vendorRoots;
2424
private static array $composerRoots = [];
2525

26-
public function __construct(string $label, int $line = 0, string $href = null)
26+
public function __construct(string $label, int $line = 0, ?string $href = null)
2727
{
2828
$this->value = $label;
2929

Caster/TraceStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TraceStub extends Stub
2525
public ?int $sliceLength;
2626
public int $numberingOffset;
2727

28-
public function __construct(array $trace, bool $keepArgs = true, int $sliceOffset = 0, int $sliceLength = null, int $numberingOffset = 0)
28+
public function __construct(array $trace, bool $keepArgs = true, int $sliceOffset = 0, ?int $sliceLength = null, int $numberingOffset = 0)
2929
{
3030
$this->value = $trace;
3131
$this->keepArgs = $keepArgs;

Cloner/AbstractCloner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ abstract class AbstractCloner implements ClonerInterface
219219
*
220220
* @see addCasters
221221
*/
222-
public function __construct(array $casters = null)
222+
public function __construct(?array $casters = null)
223223
{
224224
$this->addCasters($casters ?? static::$defaultCasters);
225225
}

Dumper/AbstractDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ abstract class AbstractDumper implements DataDumperInterface, DumperInterface
4545
* @param string|null $charset The default character encoding to use for non-UTF8 strings
4646
* @param int $flags A bit field of static::DUMP_* constants to fine tune dumps representation
4747
*/
48-
public function __construct($output = null, string $charset = null, int $flags = 0)
48+
public function __construct($output = null, ?string $charset = null, int $flags = 0)
4949
{
5050
$this->flags = $flags;
5151
$this->setCharset($charset ?: \ini_get('php.output_encoding') ?: \ini_get('default_charset') ?: 'UTF-8');

Dumper/CliDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class CliDumper extends AbstractDumper
6363

6464
private bool $handlesHrefGracefully;
6565

66-
public function __construct($output = null, string $charset = null, int $flags = 0)
66+
public function __construct($output = null, ?string $charset = null, int $flags = 0)
6767
{
6868
parent::__construct($output, $charset, $flags);
6969

Dumper/ContextProvider/SourceContextProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class SourceContextProvider implements ContextProviderInterface
3030
private ?string $projectDir;
3131
private ?FileLinkFormatter $fileLinkFormatter;
3232

33-
public function __construct(string $charset = null, string $projectDir = null, FileLinkFormatter $fileLinkFormatter = null, int $limit = 9)
33+
public function __construct(?string $charset = null, ?string $projectDir = null, ?FileLinkFormatter $fileLinkFormatter = null, int $limit = 9)
3434
{
3535
$this->charset = $charset;
3636
$this->projectDir = $projectDir;

0 commit comments

Comments
 (0)