Skip to content

Commit

Permalink
Drop support for PHP 8.1 and add support for PHP 8.3
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha Telgenhof <[email protected]>
  • Loading branch information
stelgenhof committed Jan 2, 2024
1 parent 55cf62b commit 8b1569b
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coding-standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest, windows-latest, macOS-latest ]
php-versions: [ '8.1', '8.2' ]
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
php-versions: ["8.2", "8.3"]

steps:
- name: Set git to use LF
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.1', '8.2' ]
operating-system: [ubuntu-latest]
php-versions: ["8.2", "8.3"]

steps:
- name: Set git to use LF
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ env:

jobs:
stale:

runs-on: "ubuntu-latest"

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest, windows-latest, macOS-latest ]
php-versions: [ '8.1', '8.2' ]
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
php-versions: ["8.2", "8.3"]

steps:
- name: Set git to use LF
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest, windows-latest, macOS-latest ]
php-versions: [ '8.1', '8.2' ]
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
php-versions: ["8.2", "8.3"]

steps:
- name: Set git to use LF
Expand Down
2 changes: 1 addition & 1 deletion .phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
// Note that the **only** effect of choosing `'5.6'` is to infer that functions removed in php 7.0 exist.
// (See `backward_compatibility_checks` for additional options)
// Automatically inferred from composer.json requirement for "php" of "^7.4 || ^8.0"
'target_php_version' => '8.0',
'target_php_version' => '8.2',

// If enabled, missing properties will be created when
// they are first seen. If false, we'll report an
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ here: [https://aqicn.org/data-platform/token.](https://aqicn.org/data-platform/t

## System Requirements

You need *PHP >= 8.1* to use `azuyalabs/waqi`.
You need _PHP >= 8.2_ to use `azuyalabs/waqi`.

## Installation

You can pull in this package via composer:

``` shell
```shell
composer require azuyalabs/waqi
```

Expand All @@ -46,7 +46,7 @@ $waqi = new WAQI(<your access token>);
Next, use the `getObservationByStation` method with the desired city or monitoring station name (e.g.
'new york'). This will obtain the latest air quality observations:

``` php
```php
$waqi->getObservationByStation('new york');
```

Expand All @@ -57,7 +57,7 @@ monitoring station.

To get the AQI (Air Quality Index), use the method `getAQI`:

``` php
```php
$waqi->getAQI();
```

Expand All @@ -71,7 +71,7 @@ measurement. It contains 4 elements:

Example output (for 'New York'):

```
```shell
- 'aqi': 15
- 'pollution_level': Good
- 'health_implications': Air quality is considered satisfactory, and air pollution poses little or no risk.
Expand Down Expand Up @@ -127,13 +127,13 @@ Please see [CHANGELOG](CHANGELOG.md) for more information what has changed.
This package comes with a [PHPUnit](https://phpunit.de) test suite. To run the tests, run the following command from the
project directory:

``` shell
```shell
composer test
```

,or alternatively run with:

``` shell
```shell
vendor/bin/phpunit
```

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-json": "*",
"guzzlehttp/guzzle": "^7.7"
},
Expand Down
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
SetList::EARLY_RETURN,
LevelSetList::UP_TO_PHP_81,
LevelSetList::UP_TO_PHP_82,
SetList::TYPE_DECLARATION,
]);
};

0 comments on commit 8b1569b

Please sign in to comment.