Skip to content

Commit

Permalink
End of support php 7.3. Improving code according to newer versions
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-mykhailenko committed Aug 10, 2024
1 parent c2376ea commit 670bdaf
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
Expand All @@ -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
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 670bdaf

Please sign in to comment.