Skip to content

Commit

Permalink
PHP 7.3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Mar 1, 2021
1 parent 4739f62 commit 0338400
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/CoordinateOperation/AutoConversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@

trait AutoConversion
{
private int $maxChainDepth = 4; // if traits could have constants...
private $maxChainDepth = 4; // if traits could have constants...

private static array $pathCache = [];
private static $pathCache = [];

public function convert(CoordinateReferenceSystem $to, bool $ignoreBoundaryRestrictions = false): Point
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoordinateOperation/CRSTransformations.php
Original file line number Diff line number Diff line change
Expand Up @@ -54145,9 +54145,9 @@ class CRSTransformations
],
];

protected static array $byCRS = [];
protected static $byCRS = [];

protected static array $byCRSPair = [];
protected static $byCRSPair = [];

public static function getSupportedTransformations(): array
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoordinateReferenceSystem/Compound.php
Original file line number Diff line number Diff line change
Expand Up @@ -5153,9 +5153,9 @@ class Compound extends CoordinateReferenceSystem
],
];

private static array $cachedObjects = [];
private static $cachedObjects = [];

private static array $supportedCache = [];
private static $supportedCache = [];

/**
* @var Geocentric|Geographic|Projected
Expand Down
4 changes: 2 additions & 2 deletions src/CoordinateReferenceSystem/Geocentric.php
Original file line number Diff line number Diff line change
Expand Up @@ -2807,9 +2807,9 @@ class Geocentric extends CoordinateReferenceSystem
],
];

private static array $cachedObjects = [];
private static $cachedObjects = [];

private static array $supportedCache = [];
private static $supportedCache = [];

public function __construct(
string $srid,
Expand Down
4 changes: 2 additions & 2 deletions src/CoordinateReferenceSystem/Geographic2D.php
Original file line number Diff line number Diff line change
Expand Up @@ -7569,9 +7569,9 @@ class Geographic2D extends Geographic
],
];

private static array $cachedObjects = [];
private static $cachedObjects = [];

private static array $supportedCache = [];
private static $supportedCache = [];

public function __construct(
string $srid,
Expand Down
4 changes: 2 additions & 2 deletions src/CoordinateReferenceSystem/Geographic3D.php
Original file line number Diff line number Diff line change
Expand Up @@ -2916,9 +2916,9 @@ class Geographic3D extends Geographic
],
];

private static array $cachedObjects = [];
private static $cachedObjects = [];

private static array $supportedCache = [];
private static $supportedCache = [];

public function __construct(
string $srid,
Expand Down
4 changes: 2 additions & 2 deletions src/CoordinateReferenceSystem/Vertical.php
Original file line number Diff line number Diff line change
Expand Up @@ -3487,9 +3487,9 @@ class Vertical extends CoordinateReferenceSystem
],
];

private static array $cachedObjects = [];
private static $cachedObjects = [];

private static array $supportedCache = [];
private static $supportedCache = [];

public function __construct(
string $srid,
Expand Down
2 changes: 1 addition & 1 deletion src/CoordinateSystem/Cartesian.php
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,7 @@ class Cartesian extends CoordinateSystem
],
];

private static array $cachedObjects = [];
private static $cachedObjects = [];

public static function fromSRID(string $srid): self
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoordinateSystem/Ellipsoidal.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class Ellipsoidal extends CoordinateSystem
],
];

private static array $cachedObjects = [];
private static $cachedObjects = [];

public static function fromSRID(string $srid): self
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoordinateSystem/Vertical.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Vertical extends CoordinateSystem
],
];

private static array $cachedObjects = [];
private static $cachedObjects = [];

public static function fromSRID(string $srid): self
{
Expand Down
4 changes: 2 additions & 2 deletions src/Geometry/GeographicPolygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
*/
class GeographicPolygon
{
protected array $vertices;
protected $vertices;

protected bool $crossesAntimeridian;
protected $crossesAntimeridian;

protected function __construct(array $vertices, bool $crossesAntimeridian)
{
Expand Down

0 comments on commit 0338400

Please sign in to comment.