Skip to content

Commit

Permalink
Merge pull request #93 from Art4/91-add-support-for-php-83
Browse files Browse the repository at this point in the history
Add support for PHP 8.3
  • Loading branch information
Art4 authored Nov 28, 2023
2 parents 2ba023c + 823cfea commit dc22019
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .docker/Dockerfile-php82 → .docker/PHP83-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2-fpm
FROM php:8.3-fpm

RUN apt-get update
RUN apt-get --yes --no-install-recommends install \
Expand Down Expand Up @@ -34,7 +34,7 @@ RUN docker-php-ext-install -j$(nproc) \
COPY build/php/opcache.ini /usr/local/etc/php/conf.d/
COPY build/php/custom.ini /usr/local/etc/php/conf.d/

RUN pecl install xdebug-3.2.1 && docker-php-ext-enable xdebug
RUN pecl install xdebug-3.3.0alpha3 && docker-php-ext-enable xdebug

RUN php --version

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.2']
php: ['8.3']

name: "Check code style | PHP ${{ matrix.php }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
operating-system: ['ubuntu-latest']
php: ['8.2']
php: ['8.3']

steps:
- name: Checkout
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
operating-system: ['ubuntu-latest']
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']

steps:
- name: Checkout
Expand All @@ -30,11 +30,11 @@ jobs:
tools: none

- name: "Install Composer dependencies"
if: ${{ matrix.php < '8.3' }}
if: ${{ matrix.php <= '8.3' }}
uses: "ramsey/composer-install@v2"

- name: "Install Composer dependencies (PHP 8.3)"
if: ${{ matrix.php >= '8.3' }}
- name: "Install Composer dependencies (PHP 8.4)"
if: ${{ matrix.php >= '8.4' }}
uses: "ramsey/composer-install@v2"
with:
composer-options: --ignore-platform-reqs
Expand All @@ -43,7 +43,7 @@ jobs:
run: composer run phpunit -- --coverage-clover .phpunit.cache/clover.xml

- name: Upload coverage reports to Codecov
if: ${{ success() && matrix.php == '8.2' }}
if: ${{ success() && matrix.php == '8.3' }}
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Added

- Add support for PHP 8.2
- Add support for PHP 8.2 and PHP 8.3

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0"
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.35",
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
# Specify where the Dockerfile is located (e.g. in the root directory of the project)
context: .docker
# Specify the name of the Dockerfile for changing the PHP version
dockerfile: Dockerfile-php82
dockerfile: PHP83-Dockerfile
# Modifiy Ports for every project: <outside>:<inside>
ports:
- 8200:80
Expand Down

0 comments on commit dc22019

Please sign in to comment.