Skip to content

Commit

Permalink
removed e_user_deprecated exceptions for GeoShape query
Browse files Browse the repository at this point in the history
  • Loading branch information
hkulekci committed Feb 20, 2022
1 parent b327422 commit e346467
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions src/Query/Geo/GeoShapeQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class GeoShapeQuery implements BuilderInterface
{
use ParametersTrait;

const INTERSECTS = 'intersects';
const DISJOINT = 'disjoint';
const WITHIN = 'within';
const CONTAINS = 'contains';
public const INTERSECTS = 'intersects';
public const DISJOINT = 'disjoint';
public const WITHIN = 'within';
public const CONTAINS = 'contains';

/**
* @var array
Expand Down Expand Up @@ -60,13 +60,6 @@ public function getType()
*/
public function addShape($field, $type, array $coordinates, $relation = self::INTERSECTS, array $parameters = [])
{
// TODO: remove this in the next major version
if (is_array($relation)) {
$parameters = $relation;
$relation = self::INTERSECTS;
trigger_error('$parameters as parameter 4 in addShape is deprecated', E_USER_DEPRECATED);
}

$filter = array_merge(
$parameters,
[
Expand Down Expand Up @@ -101,13 +94,6 @@ public function addPreIndexedShape(
$relation = self::INTERSECTS,
array $parameters = []
) {
// TODO: remove this in the next major version
if (is_array($relation)) {
$parameters = $relation;
$relation = self::INTERSECTS;
trigger_error('$parameters as parameter 6 in addShape is deprecated', E_USER_DEPRECATED);
}

$filter = array_merge(
$parameters,
[
Expand Down

0 comments on commit e346467

Please sign in to comment.