Skip to content

Commit

Permalink
Merge pull request #19 from antistatique/update/github-actions
Browse files Browse the repository at this point in the history
add tests on PHP 8.3
  • Loading branch information
WengerK authored Jun 14, 2024
2 parents bcb5737 + ce11210 commit 0327c8e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions src/SwisstopoConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
];
}

Expand All @@ -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),
];
}

Expand All @@ -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),
];
}

Expand All @@ -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),
];
}

Expand Down

0 comments on commit 0327c8e

Please sign in to comment.