Skip to content

Commit 030e561

Browse files
committed
make more ide friendly
1 parent ca861da commit 030e561

File tree

5 files changed

+3
-10
lines changed

5 files changed

+3
-10
lines changed

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ parameters:
55
- src
66
- tests
77
level: max
8+
ignoreErrors:
9+
- '#Method MatanYadaev\\EloquentSpatial\\Objects\\.+::getGeometries\(\) should return array<.+> but returns array<MatanYadaev\\EloquentSpatial\\Objects\\Geometry>\.#'
10+
- '#Method MatanYadaev\\EloquentSpatial\\Objects\\(Geometry|GeometryCollection)::(toJson|toFeatureCollectionJson)\(\) should return string but returns string\|false\.#'
811
excludePaths:
912
- ./src/Factory.php
1013
checkMissingIterableValueType: true

src/Objects/Geometry.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public static function fromWkt(string $wkt): static
3838

3939
public function toJson($options = 0): string
4040
{
41-
/* @phpstan-ignore-next-line */
4241
return json_encode($this, $options);
4342
}
4443

src/Objects/MultiLineString.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
use Illuminate\Support\Collection;
99
use Illuminate\Support\Facades\DB;
1010

11-
/**
12-
* @method array<LineString> getGeometries()
13-
*/
1411
class MultiLineString extends GeometryCollection
1512
{
1613
/** @var Collection<LineString> */

src/Objects/MultiPolygon.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
use Illuminate\Support\Facades\DB;
1010
use InvalidArgumentException;
1111

12-
/**
13-
* @method array<Polygon> getGeometries()
14-
*/
1512
class MultiPolygon extends GeometryCollection
1613
{
1714
/** @var Collection<Polygon> */

src/Objects/PointCollection.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
use Illuminate\Support\Collection;
88
use InvalidArgumentException;
99

10-
/**
11-
* @method array<Point> getGeometries()
12-
*/
1310
abstract class PointCollection extends GeometryCollection
1411
{
1512
/** @var Collection<Point> */

0 commit comments

Comments
 (0)