-
Notifications
You must be signed in to change notification settings - Fork 7
MINT-5942: Upgrade BeSimpleSoap bundle to use PHP 8.1 #24
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
base: master
Are you sure you want to change the base?
Conversation
Dockerfile
Outdated
| FROM composer:2 AS composer | ||
|
|
||
| FROM php:7.0-fpm | ||
| FROM php:8.1.0-fpm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we are defining the minimum version to PHP 8.0. I'd change it to 8.0-fpm.
Dockerfile
Outdated
| FROM composer:2 AS composer | ||
|
|
||
| FROM php:7.0-fpm | ||
| FROM php:8.1.0-fpm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use the PHP 8.0 here.
composer.json
Outdated
| ], | ||
| "require": { | ||
| "php": ">=5.4.0", | ||
| "php": ">=7.0 || >=8.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you defined it as 7.0, then we cannot use nullable return types. I saw some commits using it.
| * @return string | ||
| */ | ||
| public function __doRequest($request, $location, $action, $version, $oneWay = 0) | ||
| public function __doRequest($request, $location, $action, $version, $oneWay = 0): ?string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nullable return types will not working on PHP 7.0.
| } | ||
|
|
||
| public function doSetUp() | ||
| public function setUp(): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void is not an acceptable return type on PHP 7.0
| use \Symfony\Bridge\PhpUnit\SetUpTearDownTrait; | ||
|
|
||
| protected function doSetUp() | ||
| protected function setUp(): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void is not an acceptable return type on PHP 7.0
| use \Symfony\Bridge\PhpUnit\SetUpTearDownTrait; | ||
|
|
||
| protected function doSetUp() | ||
| protected function setUp(): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void is not an acceptable return type on PHP 7.0.
No description provided.