From 590b4b7dc6a4c3150e6a4079406e1bf9ea6e9b13 Mon Sep 17 00:00:00 2001
From: Kevin Wenger <wenger.kev@gmail.com>
Date: Wed, 12 Jul 2023 12:58:33 +0200
Subject: [PATCH 01/10] add dependabot

---
 .github/dependabot.yml | 21 +++++++++++++++++++++
 CHANGELOG.md           |  2 ++
 2 files changed, 23 insertions(+)
 create mode 100644 .github/dependabot.yml

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..cdd7de1
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,21 @@
+# To get started with Dependabot version updates, you'll need to specify which
+# package ecosystems to update and where the package manifests are located.
+# Please see the documentation for all configuration options:
+# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
+
+version: 2
+updates:
+  - package-ecosystem: composer
+    directory: "/"
+    versioning-strategy: lockfile-only
+    allow:
+      - dependency-type: production
+    registries:
+      - composer
+    schedule:
+      interval: weekly
+  - package-ecosystem: "github-actions"
+    directory: "/"
+    schedule:
+      interval: weekly
+
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a6dfaa9..ef45fc6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ## [Unreleased]
+### Added
+- add dependabot
 
 ## [0.0.1] - 2023-07-12
 ### Fixed

From ab919a5bd2e023070cf54a6f0f94c95cb9220daf Mon Sep 17 00:00:00 2001
From: Kevin Wenger <wenger.kev@gmail.com>
Date: Wed, 12 Jul 2023 13:12:05 +0200
Subject: [PATCH 02/10] remove sensiolabs/security-checker from direct
 dependency

---
 CHANGELOG.md  | 3 +++
 composer.json | 1 -
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index ef45fc6..b5a0639 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Added
 - add dependabot
 
+### Removed
+- remove sensiolabs/security-checker from direct dependency
+
 ## [0.0.1] - 2023-07-12
 ### Fixed
 - fixed deprecations for development
diff --git a/composer.json b/composer.json
index 70b6ca9..2566983 100644
--- a/composer.json
+++ b/composer.json
@@ -11,7 +11,6 @@
         "friendsofphp/php-cs-fixer": "^3.0",
         "phpmd/phpmd": "^2.8",
         "sebastian/phpcpd": "^6.0",
-        "sensiolabs/security-checker": "^5.0",
         "php-coveralls/php-coveralls": "^2.1",
         "php-mock/php-mock-phpunit": "^2.4",
         "vimeo/psalm": "^4.29",

From 1e428694ce42b8e4bad4397835772d00d1f7b1e6 Mon Sep 17 00:00:00 2001
From: Kevin Wenger <wenger.kev@gmail.com>
Date: Wed, 12 Jul 2023 13:16:17 +0200
Subject: [PATCH 03/10] update friendsofphp/php-cs-fixer (v3.4.0 => v3.21.1)

---
 CHANGELOG.md                       | 3 +++
 composer.json                      | 2 +-
 tests/Traits/InvokeMethodTrait.php | 8 +++-----
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index b5a0639..6bd33db 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Removed
 - remove sensiolabs/security-checker from direct dependency
 
+### Security
+- update friendsofphp/php-cs-fixer (v3.4.0 => v3.21.1)
+
 ## [0.0.1] - 2023-07-12
 ### Fixed
 - fixed deprecations for development
diff --git a/composer.json b/composer.json
index 2566983..e2b3578 100644
--- a/composer.json
+++ b/composer.json
@@ -8,7 +8,7 @@
     "require-dev": {
         "phpunit/phpunit": "^9.0.0",
         "phpunit/php-code-coverage": "^9.2.0",
-        "friendsofphp/php-cs-fixer": "^3.0",
+        "friendsofphp/php-cs-fixer": "^3.21",
         "phpmd/phpmd": "^2.8",
         "sebastian/phpcpd": "^6.0",
         "php-coveralls/php-coveralls": "^2.1",
diff --git a/tests/Traits/InvokeMethodTrait.php b/tests/Traits/InvokeMethodTrait.php
index 1fe05cc..4661e87 100644
--- a/tests/Traits/InvokeMethodTrait.php
+++ b/tests/Traits/InvokeMethodTrait.php
@@ -2,8 +2,6 @@
 
 namespace Antistatique\Swisstopo\Tests\Traits;
 
-use ReflectionClass;
-
 /**
  * Provides a function to invoke protected/private methods of a class.
  */
@@ -21,14 +19,14 @@ trait InvokeMethodTrait
      * @param array  $protected_properties
      *                                     Array of values that should be set on protected properties
      *
-     * @throws \ReflectionException
-     *
      * @return mixed
      *   Method return
+     *
+     * @throws \ReflectionException
      */
     protected function invokeMethod(&$object, $method_name, array $parameters = [], array $protected_properties = [])
     {
-        $reflection = new ReflectionClass(\get_class($object));
+        $reflection = new \ReflectionClass(\get_class($object));
 
         foreach ($protected_properties as $property => $value) {
             $property = $reflection->getProperty($property);

From b2b2f9c44f0d1544f8f282ee01bfaa36696765f9 Mon Sep 17 00:00:00 2001
From: Kevin Wenger <wenger.kev@gmail.com>
Date: Wed, 12 Jul 2023 13:05:52 +0200
Subject: [PATCH 04/10] run tests & code-styles on PHP 8.2

---
 .github/workflows/code-styles.yml | 10 +++++-----
 .github/workflows/tests.yml       |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/code-styles.yml b/.github/workflows/code-styles.yml
index ccaf7f3..a79cb6f 100644
--- a/.github/workflows/code-styles.yml
+++ b/.github/workflows/code-styles.yml
@@ -9,7 +9,7 @@ jobs:
       - name: Setup PHP
         uses: shivammathur/setup-php@v2
         with:
-          php-version: '8.0'
+          php-version: '8.2'
           extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
           tools: php-cs-fixer, cs2pr
       - uses: actions/checkout@v2
@@ -23,7 +23,7 @@ jobs:
       - name: Setup PHP
         uses: shivammathur/setup-php@v2
         with:
-          php-version: '8.1'
+          php-version: '8.2'
           extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
       - uses: actions/checkout@v2
       - run: composer install --prefer-dist
@@ -36,7 +36,7 @@ jobs:
       - name: Setup PHP
         uses: shivammathur/setup-php@v2
         with:
-          php-version: '8.1'
+          php-version: '8.2'
           extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
       - uses: actions/checkout@v2
       - run: composer install --prefer-dist
@@ -49,7 +49,7 @@ jobs:
       - name: Setup PHP
         uses: shivammathur/setup-php@v2
         with:
-          php-version: '8.1'
+          php-version: '8.2'
           extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
           tools: phpstan, cs2pr
       - uses: actions/checkout@v2
@@ -63,7 +63,7 @@ jobs:
       - name: Setup PHP
         uses: shivammathur/setup-php@v2
         with:
-          php-version: '8.1'
+          php-version: '8.2'
           extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
       - uses: actions/checkout@v2
       - run: composer install --prefer-dist
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 2031e42..f51c498 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -10,7 +10,7 @@ jobs:
 
     strategy:
       matrix:
-        php-versions: ['8.0', '8.1']
+        php-versions: ['8.0', '8.1', '8.2']
     steps:
       - name: Setup PHP
         uses: shivammathur/setup-php@v2

From bcb573776b847d9a38cbb1cad72cc02f57b4f60a Mon Sep 17 00:00:00 2001
From: Kevin Wenger <wenger.kev@gmail.com>
Date: Wed, 12 Jul 2023 13:34:55 +0200
Subject: [PATCH 05/10] happy new year

---
 LICENSE | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/LICENSE b/LICENSE
index c81dca7..cf5a268 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
 MIT License
 
-Copyright (c) 2020–2022 Antistatique
+Copyright (c) 2020–2023 Antistatique
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal

From 8f17b17d54721f5155857f164738d30b730e9780 Mon Sep 17 00:00:00 2001
From: Kevin Wenger <wenger.kev@gmail.com>
Date: Fri, 14 Jun 2024 09:43:07 +0200
Subject: [PATCH 06/10] add tests on PHP 8.3

---
 .github/workflows/tests.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index f51c498..48910a0 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -10,14 +10,14 @@ jobs:
 
     strategy:
       matrix:
-        php-versions: ['8.0', '8.1', '8.2']
+        php-versions: ['8.0', '8.1', '8.2', '8.3']
     steps:
       - name: Setup PHP
         uses: shivammathur/setup-php@v2
         with:
           php-version: ${{ matrix.php-versions }}
           tools: composer:v2
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
       - uses: php-actions/composer@v6
         with:
           php_version: ${{ matrix.php-versions }}

From 3f0c418d9be3b3b1478cf0015f8252186e53f017 Mon Sep 17 00:00:00 2001
From: Kevin Wenger <wenger.kev@gmail.com>
Date: Fri, 14 Jun 2024 09:45:19 +0200
Subject: [PATCH 07/10] fix php convention array indentation

---
 src/SwisstopoConverter.php | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/SwisstopoConverter.php b/src/SwisstopoConverter.php
index 9c97d28..1952ef5 100644
--- a/src/SwisstopoConverter.php
+++ b/src/SwisstopoConverter.php
@@ -21,8 +21,8 @@ class SwisstopoConverter
     public static function fromMN95ToWGS(float|int $east, float|int $north): array
     {
         return [
-          'lat' => self::fromMN95ToWGSLatitude($east, $north),
-          'long' => self::fromMN95ToWGSLongitude($east, $north),
+            'lat' => self::fromMN95ToWGSLatitude($east, $north),
+            'long' => self::fromMN95ToWGSLongitude($east, $north),
         ];
     }
 
@@ -40,8 +40,8 @@ public static function fromMN95ToWGS(float|int $east, float|int $north): array
     public static function fromWGSToMN95(float $lat, float $long): array
     {
         return [
-          'east' => self::fromWGSToMN95East($lat, $long),
-          'north' => self::fromWGSToMN95North($lat, $long),
+            'east' => self::fromWGSToMN95East($lat, $long),
+            'north' => self::fromWGSToMN95North($lat, $long),
         ];
     }
 
@@ -59,8 +59,8 @@ public static function fromWGSToMN95(float $lat, float $long): array
     public static function fromMN03ToWGS(int $y, int $x): array
     {
         return [
-          'lat' => self::fromMN03ToWGSLatitude($y, $x),
-          'long' => self::fromMN03ToWGSLongitude($y, $x),
+            'lat' => self::fromMN03ToWGSLatitude($y, $x),
+            'long' => self::fromMN03ToWGSLongitude($y, $x),
         ];
     }
 
@@ -78,8 +78,8 @@ public static function fromMN03ToWGS(int $y, int $x): array
     public static function fromWGSToMN03(float $lat, float $long): array
     {
         return [
-          'x' => self::fromWGSToMN03x($lat, $long),
-          'y' => self::fromWGSToMN03y($lat, $long),
+            'x' => self::fromWGSToMN03x($lat, $long),
+            'y' => self::fromWGSToMN03y($lat, $long),
         ];
     }
 

From ce11210837ad2ab8851bfbd0a2bf54b3c165a3ae Mon Sep 17 00:00:00 2001
From: Kevin Wenger <wenger.kev@gmail.com>
Date: Fri, 14 Jun 2024 09:46:08 +0200
Subject: [PATCH 08/10] bump changelog

---
 CHANGELOG.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6bd33db..101069a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ## [Unreleased]
 ### Added
 - add dependabot
+- add tests on PHP 8.3
 
 ### Removed
 - remove sensiolabs/security-checker from direct dependency

From 533a1bc04d8a1f1da5e719ea9e80426d98d06eee Mon Sep 17 00:00:00 2001
From: Kevin Wenger <wenger.kev@gmail.com>
Date: Fri, 14 Jun 2024 09:59:53 +0200
Subject: [PATCH 09/10] change actions Github names to follow newer practices

---
 .github/workflows/{code-styles.yml => styles.yml} | 7 +++++--
 .github/workflows/tests.yml                       | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)
 rename .github/workflows/{code-styles.yml => styles.yml} (97%)

diff --git a/.github/workflows/code-styles.yml b/.github/workflows/styles.yml
similarity index 97%
rename from .github/workflows/code-styles.yml
rename to .github/workflows/styles.yml
index a79cb6f..e01f345 100644
--- a/.github/workflows/code-styles.yml
+++ b/.github/workflows/styles.yml
@@ -1,5 +1,8 @@
-name: code-styles
-on: [pull_request]
+name: Code styles
+on:
+  push:
+  schedule:
+    - cron: '0 0 * * THU'
 
 jobs:
   php-cs-fixer:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 48910a0..ee66064 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -2,7 +2,7 @@ name: Tests
 on:
   push:
   schedule:
-    - cron: "0 0 * * THU"
+    - cron: '0 0 * * THU'
 
 jobs:
   tests:

From d40feb13eabbc17534e8f99e010d8bbd9c102ca5 Mon Sep 17 00:00:00 2001
From: Kevin Wenger <wenger.kev@gmail.com>
Date: Mon, 24 Jun 2024 14:23:49 +0200
Subject: [PATCH 10/10] bump changelog and version

---
 CHANGELOG.md | 5 ++++-
 VERSION      | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 101069a..ac9038a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ## [Unreleased]
+
+## [1.0.0] - 2024-06-24
 ### Added
 - add dependabot
 - add tests on PHP 8.3
@@ -40,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - allow conversion of GPS (WGS84) coordinates from/to CH1903/LV03 (MN03)
 - allow conversion of GPS (WGS84) coordinates from/to CH1995/LV95 (MN95)
 
-[Unreleased]: https://github.com/antistatique/swisstopo/compare/0.0.1...HEAD
+[Unreleased]: https://github.com/antistatique/swisstopo/compare/1.0.0...HEAD
+[1.0.0]: https://github.com/antistatique/swisstopo/compare/0.0.1...1.0.0
 [0.0.1]: https://github.com/antistatique/swisstopo/compare/0.0.1-alpha...v0.0.1
 [0.0.1-alpha]: https://github.com/antistatique/swisstopo/releases/tag/0.0.1-alpha
diff --git a/VERSION b/VERSION
index 8acdd82..3eefcb9 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.0.1
+1.0.0