diff --git a/.github/workflows/coding-standard.yml b/.github/workflows/coding-standard.yml index e81644a..ccd5f45 100644 --- a/.github/workflows/coding-standard.yml +++ b/.github/workflows/coding-standard.yml @@ -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 diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml index 8cc44e6..5df8b8b 100644 --- a/.github/workflows/mutation-tests.yml +++ b/.github/workflows/mutation-tests.yml @@ -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 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 93f0cd0..710271f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -10,7 +10,6 @@ env: jobs: stale: - runs-on: "ubuntu-latest" steps: diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index fa2731a..b280b6c 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -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 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 73ea062..08403c3 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -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 diff --git a/.phan/config.php b/.phan/config.php index 6e546fd..e791ec6 100644 --- a/.phan/config.php +++ b/.phan/config.php @@ -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 diff --git a/README.md b/README.md index ee75dee..f7721a0 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -46,7 +46,7 @@ $waqi = new WAQI(); 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'); ``` @@ -57,7 +57,7 @@ monitoring station. To get the AQI (Air Quality Index), use the method `getAQI`: -``` php +```php $waqi->getAQI(); ``` @@ -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. @@ -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 ``` diff --git a/composer.json b/composer.json index 8067e10..2da493f 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ } ], "require": { - "php": "^8.1", + "php": "^8.2", "ext-json": "*", "guzzlehttp/guzzle": "^7.7" }, diff --git a/rector.php b/rector.php index f1bc750..2a3ac7d 100644 --- a/rector.php +++ b/rector.php @@ -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, ]); };