Skip to content

Commit 47f575e

Browse files
committed
Remove useless @phpstan-ignore argument.type annotations
1 parent b9ec92f commit 47f575e

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

src/Generator/CreateTargetStatementsGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private function constructorArgument(GeneratorMetadata $metadata, PropertyMetada
193193
new Arg(new Scalar\String_(sprintf('Cannot create an instance of "%s" from mapping data because its constructor requires the following parameters to be present : "$%s".', $metadata->mapperMetadata->target, $propertyMetadata->target->property))),
194194
new Arg(create_scalar_int(0)),
195195
new Arg(new Expr\ConstFetch(new Name('null'))),
196-
new Arg(new Expr\Array_([ // @phpstan-ignore argument.type
196+
new Arg(new Expr\Array_([
197197
create_expr_array_item(new Scalar\String_($propertyMetadata->target->property)),
198198
])),
199199
new Arg(new Scalar\String_($metadata->mapperMetadata->target)),
@@ -262,7 +262,7 @@ private function constructorArgumentWithoutSource(GeneratorMetadata $metadata, \
262262
new Arg(new Scalar\String_(sprintf('Cannot create an instance of "%s" from mapping data because its constructor requires the following parameters to be present : "$%s".', $metadata->mapperMetadata->target, $constructorParameter->getName()))),
263263
new Arg(create_scalar_int(0)),
264264
new Arg(new Expr\ConstFetch(new Name('null'))),
265-
new Arg(new Expr\Array_([ // @phpstan-ignore argument.type
265+
new Arg(new Expr\Array_([
266266
create_expr_array_item(new Scalar\String_($constructorParameter->getName())),
267267
])),
268268
new Arg(new Scalar\String_($constructorParameter->getName())),

src/Generator/MapperGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public function generate(GeneratorMetadata $metadata): array
7474

7575
$statements = [];
7676
if ($metadata->strictTypes) {
77-
// @phpstan-ignore argument.type
7877
$statements[] = new Stmt\Declare_([create_declare_item('strict_types', create_scalar_int(1))]);
7978
}
8079
$statements[] = (new Builder\Class_($metadata->mapperMetadata->className))

src/Generator/PropertyConditionsGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private function groupsCheck(VariableRegistry $variableRegistry, ?array $groups
172172
new Expr\Array_()
173173
)
174174
),
175-
new Arg(new Expr\Array_(array_map(function (string $group) { // @phpstan-ignore argument.type
175+
new Arg(new Expr\Array_(array_map(function (string $group) {
176176
return create_expr_array_item(new Scalar\String_($group));
177177
}, $groups))),
178178
])

src/Transformer/BuiltinTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function getCheckExpression(Expr $input, Expr $target, PropertyMetadata $
136136

137137
private function toArray(Expr $input): Expr
138138
{
139-
return new Expr\Array_([create_expr_array_item($input)]); // @phpstan-ignore argument.type
139+
return new Expr\Array_([create_expr_array_item($input)]);
140140
}
141141

142142
private function fromIteratorToArray(Expr $input): Expr

0 commit comments

Comments
 (0)