Skip to content

Commit 009d4fa

Browse files
committed
v2.0.2: supports Laravel 11+ and PHP 8.2+
1 parent f04fd34 commit 009d4fa

File tree

13 files changed

+13
-20
lines changed

13 files changed

+13
-20
lines changed

.github/workflows/pest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php: [ 8.2, 8.1 ]
15-
laravel: [ 10.* ]
14+
php: [ 8.1, 8.2, 8.3 ]
15+
laravel: [ 10.*, 11.* ]
1616
db: [ 'mysql:8.0', 'mysql:5.7', 'mariadb:10.9' ]
1717
dependency-version: [ prefer-stable ]
1818
include:
19-
- laravel: 10.*
19+
- laravel: ${{ matrix.laravel }}
2020
testbench: ^8.0
2121

2222
services:

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php: [ 8.2, 8.1 ]
14+
php: [ 8.1, 8.2, 8.3 ]
1515

1616
steps:
1717
- name: Checkout code

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
**This Laravel package allows you to easily work with spatial data types and functions.**
1212

13-
* v2 supports Laravel 10+ and PHP 8.1+
13+
* v2 supports Laravel 10,11 and PHP 8.1+
1414
* v1 supports Laravel 8,9 and PHP 8.1+
1515

1616
This package supports MySQL v8 or v5.7, and MariaDB v10.

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
"php": "^8.1",
1414
"ext-json": "*",
1515
"ext-pdo": "*",
16-
"laravel/framework": "^10.0",
16+
"laravel/framework": "^10.0|^11.0",
1717
"phayes/geophp": "^1.2"
1818
},
1919
"require-dev": {
20-
"doctrine/dbal": "^3.0",
20+
"doctrine/dbal": "^3.0|^4.1",
2121
"laravel/pint": "^1.5",
22-
"nunomaduro/larastan": "^1.0|^2.4",
23-
"orchestra/testbench": "^8.0",
24-
"pestphp/pest": "^1.0|^2.6",
25-
"pestphp/pest-plugin-laravel": "^1.0|^2.0"
22+
"larastan/larastan": "^1.0|^2.4",
23+
"orchestra/testbench": "^8.0|^9.4",
24+
"pestphp/pest": "^1.0|^2.6|^3.0",
25+
"pestphp/pest-plugin-laravel": "^1.0|^2.0|^3.0"
2626
},
2727
"autoload": {
2828
"psr-4": {

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
includes:
2-
- ./vendor/nunomaduro/larastan/extension.neon
2+
- ./vendor/larastan/larastan/extension.neon
33
parameters:
44
paths:
55
- src

src/Eloquent/HasSpatial.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use ASanikovich\LaravelSpatial\Geometry\Geometry;
66
use Illuminate\Database\Eloquent\Builder;
7-
use Illuminate\Database\Query\Expression;
7+
use Illuminate\Contracts\Database\Query\Expression;
88

99
/**
1010
* @method static withDistance(Expression|Geometry|string $column, Expression|Geometry|string $geometryOrColumn, string $alias = 'distance')

tests/Geometry/GeometryCollectionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@
373373
it('adds a macro toGeometryCollection', function (): void {
374374
Geometry::macro('getName', function (): string {
375375
/** @var Geometry $this */
376-
// @phpstan-ignore-next-line
377376
return class_basename($this);
378377
});
379378

tests/Geometry/LineStringTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@
167167
it('adds a macro toLineString', function (): void {
168168
Geometry::macro('getName', function (): string {
169169
/** @var Geometry $this */
170-
// @phpstan-ignore-next-line
171170
return class_basename($this);
172171
});
173172

tests/Geometry/MultiLineStringTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@
189189
it('adds a macro toMultiLineString', function (): void {
190190
Geometry::macro('getName', function (): string {
191191
/** @var Geometry $this */
192-
// @phpstan-ignore-next-line
193192
return class_basename($this);
194193
});
195194

tests/Geometry/MultiPointTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@
152152
it('adds a macro toMultiPoint', function (): void {
153153
Geometry::macro('getName', function (): string {
154154
/** @var Geometry $this */
155-
// @phpstan-ignore-next-line
156155
return class_basename($this);
157156
});
158157

0 commit comments

Comments
 (0)