Skip to content

Commit 2e7b85e

Browse files
committed
fix tests
1 parent 731572f commit 2e7b85e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Schema/Grammars/PostgisGrammar.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PostgisGrammar extends PostgresGrammar
1818
*/
1919
public function typePoint(Fluent $column)
2020
{
21-
if ((in_array(strtoupper($column->geomtype), $this->allowed_geom_types)) && (is_int((int) $column->srid))) {
21+
if ((in_array(strtoupper($column->geomtype), PostgisGrammar::$allowed_geom_types)) && (is_int((int) $column->srid))) {
2222
return strtoupper($column->geomtype) . '(POINT, ' . $column->srid . ')';
2323
} else {
2424
throw new UnsupportedGeomtypeException('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326)');
@@ -33,7 +33,7 @@ public function typePoint(Fluent $column)
3333
*/
3434
public function typeMultipoint(Fluent $column)
3535
{
36-
if ((in_array(strtoupper($column->geomtype), $this->allowed_geom_types)) && (is_int((int) $column->srid))) {
36+
if ((in_array(strtoupper($column->geomtype), PostgisGrammar::$allowed_geom_types)) && (is_int((int) $column->srid))) {
3737
return strtoupper($column->geomtype) . '(MULTIPOINT, ' . $column->srid . ')';
3838
} else {
3939
throw new UnsupportedGeomtypeException('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326)');
@@ -48,7 +48,7 @@ public function typeMultipoint(Fluent $column)
4848
*/
4949
public function typePolygon(Fluent $column)
5050
{
51-
if ((in_array(strtoupper($column->geomtype), $this->allowed_geom_types)) && (is_int((int) $column->srid))) {
51+
if ((in_array(strtoupper($column->geomtype), PostgisGrammar::$allowed_geom_types)) && (is_int((int) $column->srid))) {
5252
return strtoupper($column->geomtype) . '(POLYGON, ' . $column->srid . ')';
5353
} else {
5454
throw new UnsupportedGeomtypeException('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326)');
@@ -63,7 +63,7 @@ public function typePolygon(Fluent $column)
6363
*/
6464
public function typeMultipolygon(Fluent $column)
6565
{
66-
if ((in_array(strtoupper($column->geomtype), $this->allowed_geom_types)) && (is_int((int) $column->srid))) {
66+
if ((in_array(strtoupper($column->geomtype), PostgisGrammar::$allowed_geom_types)) && (is_int((int) $column->srid))) {
6767
return strtoupper($column->geomtype) . '(MULTIPOLYGON, ' . $column->srid . ')';
6868
} else {
6969
throw new UnsupportedGeomtypeException('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326)');
@@ -78,7 +78,7 @@ public function typeMultipolygon(Fluent $column)
7878
*/
7979
public function typeLinestring(Fluent $column)
8080
{
81-
if ((in_array(strtoupper($column->geomtype), $this->allowed_geom_types)) && (is_int((int) $column->srid))) {
81+
if ((in_array(strtoupper($column->geomtype), PostgisGrammar::$allowed_geom_types)) && (is_int((int) $column->srid))) {
8282
return strtoupper($column->geomtype) . '(LINESTRING, ' . $column->srid . ')';
8383
} else {
8484
throw new UnsupportedGeomtypeException('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326)');
@@ -93,7 +93,7 @@ public function typeLinestring(Fluent $column)
9393
*/
9494
public function typeMultilinestring(Fluent $column)
9595
{
96-
if ((in_array(strtoupper($column->geomtype), $this->allowed_geom_types)) && (is_int((int) $column->srid))) {
96+
if ((in_array(strtoupper($column->geomtype), PostgisGrammar::$allowed_geom_types)) && (is_int((int) $column->srid))) {
9797
return strtoupper($column->geomtype) . '(MULTILINESTRING, ' . $column->srid . ')';
9898
} else {
9999
throw new UnsupportedGeomtypeException('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326)');

0 commit comments

Comments
 (0)