File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ parameters:
20
20
path : tests/*.php
21
21
-
22
22
identifier : missingType.generics
23
+ -
24
+ identifier : method.nonObject
25
+ -
26
+ identifier : varTag.nativeType
23
27
24
28
level : max
25
- checkMissingIterableValueType : true
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ public function toWkb(): string
59
59
// @phpstan-ignore-next-line
60
60
$ wkbWithoutSrid = (new geoPHPWkb )->write ($ geoPHPGeometry );
61
61
62
+ // @phpstan-ignore-next-line binaryOp.invalid
62
63
return $ sridInBinary .$ wkbWithoutSrid ;
63
64
}
64
65
@@ -76,6 +77,7 @@ public static function fromWkb(string $wkb): static
76
77
$ wkb = substr ($ wkb , 4 );
77
78
78
79
$ geometry = Factory::parse ($ wkb );
80
+ // @phpstan-ignore-next-line assign.propertyType
79
81
$ geometry ->srid = $ srid ;
80
82
}
81
83
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ protected function validateGeometriesCount(): void
155
155
protected function validateGeometriesType (): void
156
156
{
157
157
$ this ->geometries ->each (function (mixed $ geometry ): void {
158
- /** @var mixed $geometry */
158
+ // @phpstan-ignore-next-line function.alreadyNarrowedType
159
159
if (! is_object ($ geometry ) || ! ($ geometry instanceof $ this ->collectionOf )) {
160
160
throw new InvalidArgumentException (
161
161
sprintf ('%s must be a collection of %s ' , static ::class, $ this ->collectionOf )
@@ -169,6 +169,7 @@ protected function validateGeometriesType(): void
169
169
*/
170
170
private function isExtended (): bool
171
171
{
172
+ // @phpstan-ignore-next-line function.alreadyNarrowedType
172
173
return is_subclass_of (static ::class, self ::class);
173
174
}
174
175
}
You can’t perform that action at this time.
0 commit comments