From 670bdaf539e6c25c5d632a806d861993d6da820e Mon Sep 17 00:00:00 2001 From: Oleksandr Mykhailenko Date: Sat, 10 Aug 2024 15:05:01 +0300 Subject: [PATCH] End of support php 7.3. Improving code according to newer versions --- .github/workflows/php.yml | 8 ++++---- .github/workflows/static.yml | 26 ++++++++++++++------------ CHANGELOG.md | 9 +++++++++ README.md | 2 +- 4 files changed, 28 insertions(+), 17 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 585f67e5..eb09b2ea 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -10,12 +10,12 @@ jobs: matrix: php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] - runs-on: 'Ubuntu-20.04' + runs-on: 'ubuntu-latest' steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -31,7 +31,7 @@ jobs: lowest: name: Lowest deps - runs-on: ubuntu-20.04 + runs-on: 'ubuntu-latest' steps: - name: Set up PHP uses: shivammathur/setup-php@2.9.0 @@ -40,7 +40,7 @@ jobs: coverage: pcov - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Download dependencies run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable --prefer-lowest diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index a0f8a47e..4c67c9fd 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -4,11 +4,11 @@ name: Static analysis jobs: phpstan: name: PHPStan - runs-on: ubuntu-20.04 + runs-on: 'ubuntu-latest' steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -25,11 +25,11 @@ jobs: php-cs-fixer: name: PHP-CS-Fixer - runs-on: ubuntu-20.04 + runs-on: 'ubuntu-latest' steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -43,10 +43,10 @@ jobs: psalm: name: Psalm - runs-on: ubuntu-20.04 + runs-on: 'ubuntu-latest' steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -62,13 +62,15 @@ jobs: run: psalm --no-progress --output-format=github - roave-bc-check: - name: Roave BC Check + roave-backwards-compatibility-check: + name: Roave Backwards Compatibility Check runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: "Check for BC breaks" + uses: docker://nyholm/roave-bc-check-ga composer-normalize: name: Composer Normalize @@ -83,7 +85,7 @@ jobs: tools: composer-normalize - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Normalize run: composer-normalize --dry-run diff --git a/CHANGELOG.md b/CHANGELOG.md index da34df44..cd2171a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release. +## 4.3.0 +- End of support php 7.3 +- Updated properties and added types to the classes properties +- Update code style +- Add missed field into IndexResponse for Webhooks +- Fixed template search filters +- Fixed tags API endpoints +- Added new API endpoints + ## 4.2.0 - Added basic templates functionality diff --git a/README.md b/README.md index 3a366c69..5414dcc8 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ curl -sS https://getcomposer.org/installer | php ``` ## Required minimum php version - - minimum php version 7.3 + - minimum php version 7.4 The Mailgun API Client is not hard coupled to Guzzle, Buzz or any other library that sends HTTP messages. Instead, it uses the [PSR-18](https://www.php-fig.org/psr/psr-18/) client abstraction.