Skip to content

Commit f92ef95

Browse files
committed
Laravel 11
1 parent 6ef13ca commit f92ef95

File tree

8 files changed

+23
-25
lines changed

8 files changed

+23
-25
lines changed

composer.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@
2929
"ext-pdo": "*",
3030
"doctrine/dbal": "^3.5",
3131
"geo-io/wkb-parser": "^1.0",
32-
"illuminate/contracts": "^10.0",
33-
"illuminate/database": "^10.0",
32+
"illuminate/contracts": "^11.0",
33+
"illuminate/database": "^11.0",
3434
"jmikola/geojson": "^1.0"
3535
},
3636
"conflict": {},
3737
"require-dev": {
38-
"driftingly/rector-laravel": "^0.21.0",
39-
"laravel/browser-kit-testing": "^7.0",
40-
"laravel/laravel": "^10.2.4",
41-
"laravel/pint": "^1.10.3",
42-
"mockery/mockery": "^1.6.2",
43-
"nunomaduro/collision": "^7.7.0",
44-
"nunomaduro/larastan": "^2.6.3",
45-
"orchestra/testbench": "^8.5.9",
38+
"driftingly/rector-laravel": "^1.2",
39+
"laravel/browser-kit-testing": "^7.2",
40+
"laravel/laravel": "^11.0.7",
41+
"laravel/pint": "^1.15.3",
42+
"mockery/mockery": "^1.6.11",
43+
"nunomaduro/collision": "^8.1.1",
44+
"nunomaduro/larastan": "^2.9.6",
45+
"orchestra/testbench": "^9.0.4",
4646
"phpstan/extension-installer": "^1.3.1",
47-
"phpstan/phpstan-deprecation-rules": "^1.1.3",
48-
"phpstan/phpstan-phpunit": "^1.3.13",
49-
"phpunit/phpunit": "^10.2.3",
50-
"rector/rector": "^0.17.2"
47+
"phpstan/phpstan-deprecation-rules": "^1.1.4",
48+
"phpstan/phpstan-phpunit": "^1.3.16",
49+
"phpunit/phpunit": "^11.1.3",
50+
"rector/rector": "^1.0.5"
5151
},
5252
"autoload": {
5353
"psr-4": {

src/Schema/Builder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ class Builder extends MySqlBuilder
1111
* Create a new command set with a Closure.
1212
*
1313
* @param string $table
14-
* @param Closure $callback
1514
* @return Blueprint
1615
*/
17-
protected function createBlueprint($table, Closure $callback = null)
16+
protected function createBlueprint($table, ?Closure $callback = null)
1817
{
1918
return new Blueprint($table, $callback);
2019
}

src/Types/Geometry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
use Limenet\LaravelMysqlSpatial\Exceptions\UnknownWKBException;
1010
use Limenet\LaravelMysqlSpatial\Exceptions\UnknownWKTTypeException;
1111

12-
abstract class Geometry implements GeometryInterface, Jsonable, \JsonSerializable
12+
abstract class Geometry implements \JsonSerializable, GeometryInterface, Jsonable
1313
{
14-
protected static array$wkb_types = [
14+
protected static array $wkb_types = [
1515
1 => Point::class,
1616
2 => LineString::class,
1717
3 => Polygon::class,

src/Types/GeometryCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @implements GeometryInterface<FeatureCollection>
1919
*/
20-
class GeometryCollection extends Geometry implements IteratorAggregate, ArrayAccess, Arrayable, Countable, GeometryInterface, \Stringable
20+
class GeometryCollection extends Geometry implements \Stringable, Arrayable, ArrayAccess, Countable, GeometryInterface, IteratorAggregate
2121
{
2222
/**
2323
* The minimum number of items required to create this collection.

src/Types/MultiLineString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* @extends GeometryCollection<GeometryInterface>
1414
*/
15-
class MultiLineString extends GeometryCollection implements GeometryInterface, \Stringable
15+
class MultiLineString extends GeometryCollection implements \Stringable, GeometryInterface
1616
{
1717
/**
1818
* The minimum number of items required to create this collection.

src/Types/MultiPoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* @implements GeometryInterface<Point>
1111
*/
12-
class MultiPoint extends PointCollection implements GeometryInterface, \Stringable
12+
class MultiPoint extends PointCollection implements \Stringable, GeometryInterface
1313
{
1414
/**
1515
* The minimum number of items required to create this collection.

src/Types/MultiPolygon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* @extends GeometryCollection<Polygon>
1414
*/
15-
class MultiPolygon extends GeometryCollection implements GeometryInterface, \Stringable
15+
class MultiPolygon extends GeometryCollection implements \Stringable, GeometryInterface
1616
{
1717
/**
1818
* The minimum number of items required to create this collection.

src/Types/Point.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* @implements GeometryInterface<GeoJsonPoint>
1111
*/
12-
class Point extends Geometry implements GeometryInterface, \Stringable
12+
class Point extends Geometry implements \Stringable, GeometryInterface
1313
{
1414
public function __construct(protected float $lat, protected float $lng, ?int $srid = 0)
1515
{
@@ -64,8 +64,7 @@ public function __toString(): string
6464
}
6565

6666
/**
67-
* @param $geoJson \GeoJson\Feature\Feature|string
68-
* @return \Limenet\LaravelMysqlSpatial\Types\Point
67+
* @param $geoJson \GeoJson\Feature\Feature|string
6968
*/
7069
public static function fromJson(string|GeoJson $geoJson): self
7170
{

0 commit comments

Comments
 (0)