Skip to content

Commit

Permalink
Update dependencies to make project compatible with php 8.2 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
romibuzi committed Aug 13, 2023
1 parent 384b691 commit 837c271
Show file tree
Hide file tree
Showing 5 changed files with 367 additions and 338 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
php: ['7.4', '8.2']

steps:
- uses: actions/checkout@v3

- name: Setup PHP environment
uses: nanasess/setup-php@v3.3.2
- name: Setup PHP ${{ matrix.php }} environment
uses: nanasess/setup-php@v4
with:
php-version: 7.4
php-version: ${{ matrix.php }}

- name: Validate composer.json and composer.lock
run: composer validate --strict
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-cli
FROM php:8.2-cli

RUN apt-get update

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Check the [aws doc](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-polic

#### Prerequisites

- PHP 7+ with curl and sqlite3 extensions
- PHP >=7.4 with curl and sqlite3 extensions
- Sqlite3
- [Composer](https://getcomposer.org/)

Expand Down
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
}
],
"require": {
"php": ">=7.3",
"php": ">=7.4",
"ext-curl": "*",
"ext-pdo": "*",
"ext-sqlite3": "*",

"silex/silex": "2.3.*",
"symfony/debug": "4.4.*",
"symfony/console": "4.4.*",
"symfony/service-contracts": "2.5.*",
"doctrine/dbal": "3.2.*",
"twig/twig": "2.15.*",
"symfony/twig-bridge": "4.4.*",
Expand All @@ -34,7 +35,10 @@
"squizlabs/php_codesniffer": "3.6.*"
},
"config": {
"bin-dir": "bin/"
"bin-dir": "bin/",
"platform": {
"php": "7.4.33"
}
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 837c271

Please sign in to comment.