From e28f3855bb61a91aab32b74c176d76dd0b5658d7 Mon Sep 17 00:00:00 2001 From: Vlad Yarysh Date: Mon, 4 Dec 2023 19:19:43 +0200 Subject: [PATCH] Use library-namespaced InvalidArgumentException (#45) --- phpcs.xml.dist | 2 +- src/BoundingBox.php | 2 +- src/Exception/InvalidArgumentException.php | 9 +++++++++ src/Feature/FeatureCollection.php | 2 +- src/Geometry/GeometryCollection.php | 2 +- src/Geometry/LineString.php | 2 +- src/Geometry/LinearRing.php | 2 +- src/Geometry/Point.php | 2 +- tests/BoundingBoxTest.php | 2 +- tests/Feature/FeatureCollectionTest.php | 2 +- tests/Geometry/GeometryCollectionTest.php | 2 +- tests/Geometry/LineStringTest.php | 2 +- tests/Geometry/LinearRingTest.php | 2 +- tests/Geometry/PointTest.php | 2 +- 14 files changed, 22 insertions(+), 13 deletions(-) create mode 100644 src/Exception/InvalidArgumentException.php diff --git a/phpcs.xml.dist b/phpcs.xml.dist index f32015f..2bdffd6 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -82,7 +82,7 @@ - + diff --git a/src/BoundingBox.php b/src/BoundingBox.php index cf9eda9..c199bb0 100644 --- a/src/BoundingBox.php +++ b/src/BoundingBox.php @@ -4,8 +4,8 @@ namespace GeoJson; +use GeoJson\Exception\InvalidArgumentException; use GeoJson\Exception\UnserializationException; -use InvalidArgumentException; use JsonSerializable; use function count; diff --git a/src/Exception/InvalidArgumentException.php b/src/Exception/InvalidArgumentException.php new file mode 100644 index 0000000..5fff0d1 --- /dev/null +++ b/src/Exception/InvalidArgumentException.php @@ -0,0 +1,9 @@ +