Skip to content

Commit 727823a

Browse files
authored
Test against PHP 8.2 + 8.3 (#101)
* Test against PHP 8.2 + 8.3 * Define nullable parameter types explicitly * Drop support for PHP 8.0
1 parent 86b853d commit 727823a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php: [8.0, 8.1]
14+
php: [8.1, 8.2, 8.3]
1515

1616
steps:
1717
- name: Checkout code

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"homepage": "https://codeception.com/",
1616
"require": {
17-
"php": "^8.0",
17+
"php": "^8.1",
1818
"ext-dom": "*",
1919
"ext-json": "*",
2020
"codeception/codeception": "^5.0.8",

src/Codeception/Module/REST.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ public function dontSeeResponseContainsJson(array $json = []): void
13301330
* @part json
13311331
* @see JsonType
13321332
*/
1333-
public function seeResponseMatchesJsonType(array $jsonType, string $jsonPath = null): void
1333+
public function seeResponseMatchesJsonType(array $jsonType, ?string $jsonPath = null): void
13341334
{
13351335
$jsonArray = new JsonArray($this->connectionModule->_getResponseContent());
13361336
if ($jsonPath) {
@@ -1347,7 +1347,7 @@ public function seeResponseMatchesJsonType(array $jsonType, string $jsonPath = n
13471347
* @param array $jsonType JsonType structure
13481348
* @see seeResponseMatchesJsonType
13491349
*/
1350-
public function dontSeeResponseMatchesJsonType(array $jsonType, string $jsonPath = null): void
1350+
public function dontSeeResponseMatchesJsonType(array $jsonType, ?string $jsonPath = null): void
13511351
{
13521352
$jsonArray = new JsonArray($this->connectionModule->_getResponseContent());
13531353
if ($jsonPath) {

src/Codeception/Step/AsJson.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class AsJson extends Action implements GeneratedStep
99
{
10-
public function run(ModuleContainer $container = null)
10+
public function run(?ModuleContainer $container = null)
1111
{
1212
$container->getModule('REST')->haveHttpHeader('Content-Type', 'application/json');
1313
$resp = parent::run($container);

0 commit comments

Comments
 (0)