Skip to content

Commit

Permalink
Set base language version to PHP 8.0 or higher.
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterNeece committed Mar 31, 2022
1 parent 5e818aa commit 1cae9d0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM php:7.4-cli-alpine
FROM php:8.0-cli-alpine

RUN apk add --no-cache zip git curl supervisor

RUN docker-php-ext-install pcntl

RUN apk add --no-cache --virtual .build-deps autoconf build-base \
&& pecl install xdebug-2.8.1 \
&& pecl install xdebug-3.1.3 \
&& docker-php-ext-enable xdebug \
&& apk del .build-deps

Expand Down
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,25 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.4",
"php": ">=8.0",
"lstrojny/fxmlrpc": ">=0.12",
"psr/log": "^1.1"
},
"require-dev": {
"ext-pcntl": "*",
"ext-posix": "*",
"behat/behat": "^3.0",
"guzzlehttp/guzzle": "^6.0",
"guzzlehttp/guzzle": "^7",
"http-interop/http-factory-guzzle": "^1.0",
"overtrue/phplint": "^2.0",
"php-http/guzzle6-adapter": "^2.0",
"overtrue/phplint": "^3.0",
"php-http/httplug": "^2.1",
"php-http/message": "^1.8",
"php-parallel-lint/php-console-highlighter": "^0.5.0",
"php-parallel-lint/php-console-highlighter": "^1",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpspec/phpspec": "^7",
"phpstan/phpstan": "^1",
"phpstan/phpstan-strict-rules": "^1",
"roave/security-advisories": "dev-master",
"roave/security-advisories": "dev-latest",
"supervisorphp/configuration": "^0.3"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ protected function setUpConnector()

$client = new Client(
'http://127.0.0.1:9001/RPC2',
new HttpAdapterTransport(
new \Http\Message\MessageFactory\GuzzleMessageFactory(),
new \Http\Adapter\Guzzle6\Client($guzzleClient)
new \fXmlRpc\Transport\PsrTransport(
new \Http\Factory\Guzzle\RequestFactory(),
$guzzleClient
)
);

Expand Down
3 changes: 1 addition & 2 deletions src/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ public function __toString(): string
/**
* @inheritDoc
*/
#[ReturnTypeWillChange]
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return $this->payload[$offset] ?? null;
}
Expand Down

0 comments on commit 1cae9d0

Please sign in to comment.