Skip to content

Commit 48c7b65

Browse files
committed
fix: implicity nullable parameter deprecations
1 parent f2b2552 commit 48c7b65

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Extractor/FromSourceMappingExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getTypes(string $source, SourcePropertyMetadata $sourceProperty,
5151
return $types;
5252
}
5353

54-
private function transformType(string $target, Type $type = null): ?Type
54+
private function transformType(string $target, ?Type $type = null): ?Type
5555
{
5656
if (null === $type) {
5757
return null;

src/Metadata/MetadataFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ public static function create(
326326
MetadataRegistry $metadataRegistry,
327327
ClassDiscriminatorResolver $classDiscriminatorResolver,
328328
array $transformerFactories = [],
329-
ClassMetadataFactory $classMetadataFactory = null,
330-
AdvancedNameConverterInterface $nameConverter = null,
329+
?ClassMetadataFactory $classMetadataFactory = null,
330+
?AdvancedNameConverterInterface $nameConverter = null,
331331
ExpressionLanguage $expressionLanguage = new ExpressionLanguage(),
332332
EventDispatcherInterface $eventDispatcher = new EventDispatcher(),
333333
): self {

src/php-parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function create_scalar_int(int $value, array $attributes = []): Scalar\Int_|Scal
3737
*
3838
* @internal
3939
*/
40-
function create_expr_array_item(Expr $value, Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false): Node\ArrayItem|Expr\ArrayItem
40+
function create_expr_array_item(Expr $value, ?Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false): Node\ArrayItem|Expr\ArrayItem
4141
{
4242
$class = class_exists(Node\ArrayItem::class) ? Node\ArrayItem::class : Expr\ArrayItem::class;
4343

0 commit comments

Comments
 (0)