Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(php): upgrade PHP support and dependencies #1068

Merged
merged 7 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
matrix:
# https://endoflife.date/php
php:
- 8.0 # EOL: November 26th, 2023
- 8.1 # EOL: November 25th, 2024
- 8.2 # EOL: December 8th, 2025
- 8.1 # EOL: December 31th, 2025
- 8.2 # EOL: December 31th, 2026
- 8.3 # EOL: December 31th, 2027
# https://endoflife.date/laravel
laravel:
- 9.* # EOL: February 8th, 2024
- 10.* # EOL: February 4th, 2025

name: build (${{ matrix.php }} w/ Laravel ${{ matrix.laravel }}

Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Run tests
run: make test

build-laravel10:
build-laravel11:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -87,11 +87,11 @@ jobs:
matrix:
# https://endoflife.date/php
php:
- 8.1 # EOL: November 25th, 2024
- 8.2 # EOL: December 8th, 2025
- 8.2 # EOL: December 31th, 2026
- 8.3 # EOL: December 31th, 2027
# https://endoflife.date/laravel
laravel:
- 10.* # EOL: February 4th, 2025
- 11.* # EOL: March 12th, 2026

name: build (${{ matrix.php }} w/ Laravel ${{ matrix.laravel }}

Expand Down
24 changes: 13 additions & 11 deletions packages/php/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,21 @@
"readme"
],
"require": {
"php": "^8.0 | ^8.1 | ^8.2",
"illuminate/http": "^9.0 | ^10.0",
"illuminate/support": "^9.0 | ^10.0",
"ramsey/uuid": "^3.7 | ^4.0",
"composer/composer": "^2.0",
"guzzlehttp/guzzle": "^7.0",
"composer-runtime-api": "^2.2"
"php": "^8.1 | ^8.2 | ^8.3",
"illuminate/http": "^10.0 | ^11.0",
"illuminate/support": "^10.0 | ^11.0",
"ramsey/uuid": "^4.7",
"composer/composer": "^2.7",
"guzzlehttp/guzzle": "^7.9",
"composer-runtime-api": "^2.2",
"phpoption/phpoption": "^1.9",
"vlucas/phpdotenv": "^5.6"
Comment on lines +24 to +25
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are these?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were some errors on the new versions:

Uncaught Error: Call to undefined method Dotenv\Repository\RepositoryBuilder::create
Error: Class "PhpOption\Option" not found

And this installed packages seems to fix them.

},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.6",
"psalm/plugin-laravel": "^2.7",
"vimeo/psalm": "5.15.0"
"phpunit/phpunit": "^10.0 | ^11.0",
"squizlabs/php_codesniffer": "^3.10",
"psalm/plugin-laravel": "^2.11.0",
"vimeo/psalm": "5.20.0"
},
"extra": {
"laravel": {
Expand Down
Loading