Skip to content

Commit

Permalink
Laravel 10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
masterix21 committed Feb 14, 2023
1 parent a372bf8 commit 8fdabc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 4 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
],
"require": {
"php": "^8.1",
"illuminate/support": "^10.0",
"geo-io/wkb-parser": "^1.0",
"jmikola/geojson": "^1.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"orchestra/testbench": "^6.0",
"phpunit/phpunit": "^9.3",
"vimeo/psalm": "^3.11"
"orchestra/testbench": "^6.23|^7.0|^8.0",
"phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
Expand All @@ -37,10 +36,8 @@
}
},
"scripts": {
"psalm": "vendor/bin/psalm",
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage",
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes"
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
},
"config": {
"sort-packages": true
Expand Down
3 changes: 2 additions & 1 deletion src/Geo/Eloquent/GeoExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

namespace Masterix21\Addressable\Geo\Eloquent;

use Illuminate\Database\Grammar;
use Illuminate\Database\Query\Expression;
use Masterix21\Addressable\Geo\Types\Geometry;

/** @property-read Geometry $value */
class GeoExpression extends Expression
{
public function getValue()
public function getValue(Grammar $grammar)
{
if ($this->hasSrid()) {
return "ST_GeomFromText(?, ?)";
Expand Down

0 comments on commit 8fdabc7

Please sign in to comment.