Skip to content

MINT-5942: Upgrade BeSimpleSoap bundle to use PHP 8.1#24

Open
decokeano wants to merge 61 commits intomasterfrom
MINT-5942
Open

MINT-5942: Upgrade BeSimpleSoap bundle to use PHP 8.1#24
decokeano wants to merge 61 commits intomasterfrom
MINT-5942

Conversation

@decokeano
Copy link
Copy Markdown

No description provided.

@decokeano decokeano changed the title Upgrade BeSimpleSoap bundle to use PHP 8.1 MINT-5942: Upgrade BeSimpleSoap bundle to use PHP 8.1 May 3, 2022
Dockerfile Outdated
FROM composer:2 AS composer

FROM php:7.0-fpm
FROM php:8.1.0-fpm
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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",
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants