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

Conversation

AndriiAndreiev
Copy link
Collaborator

@AndriiAndreiev AndriiAndreiev commented Aug 22, 2024

🚥 Resolves #1052

🧰 Changes

  • Dropped support for PHP 8.0
  • Added support for PHP 8.3.
  • Dropped support for Laravel 9
  • Expanded CI to test Laravel 11.
  • Upgraded PHP dependencies to their latest releases.
  • Fixed failing tests

Laravel 11.x requires a minimum PHP version of 8.2, so there is no CI action for Laravel 11 with PHP 8.1
Some of the updated packages required code changes (there were failing tests and failed static analysis (+ taint) checks

@AndriiAndreiev AndriiAndreiev changed the title feature: php upgrades feat(php): upgrade PHP support and dependencies Aug 22, 2024
@gratcliff gratcliff requested a review from erunion August 28, 2024 23:19
@gratcliff gratcliff added the dependencies Pull requests that update a dependency file label Aug 28, 2024
@@ -16,7 +16,8 @@ RUN apk add php81 \
php81-simplexml \
php81-tokenizer \
php81-xml \
php81-xmlwriter
php81-xmlwriter \
php81-pdo
Copy link
Member

Choose a reason for hiding this comment

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

mind moving this after php81-phar so this list stays alphabetical?

Comment on lines +24 to +25
"phpoption/phpoption": "^1.9",
"vlucas/phpdotenv": "^5.6"
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.

@gratcliff
Copy link
Member

@AndriiAndreiev do you mind resolving conflicts?

@gratcliff gratcliff merged commit 7359d64 into main Sep 18, 2024
45 checks passed
@gratcliff gratcliff deleted the feature/php-upgrades branch September 18, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: upgrade PHP support and dependencies
3 participants