Skip to content

Commit e7278df

Browse files
committed
Fix PHP compatibility: remove typed property and trailing commas in FeatureContext
Remove PHP 7.4+ typed property syntax and PHP 7.3+ trailing commas in function calls — the Behat container uses an older PHP version.
1 parent b1546c0 commit e7278df

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎stepup/tests/behat/features/bootstrap/FeatureContext.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ public function diePrintingContent()
452452
}
453453

454454
/** @var array<string, int> */
455-
private array $recordedEventCounts = [];
455+
private $recordedEventCounts = [];
456456

457457
/**
458458
* @Given I record the event stream count for aggregate :uuid
@@ -461,7 +461,7 @@ public function iRecordEventStreamCount(string $uuid): void
461461
{
462462
$result = shell_exec(sprintf(
463463
"mysql -h mariadb -u root -psecret middleware_test -se \"SELECT COUNT(*) FROM event_stream WHERE uuid='%s'\"",
464-
$uuid,
464+
$uuid
465465
));
466466
$this->recordedEventCounts[$uuid] = (int) trim((string) $result);
467467
}
@@ -473,7 +473,7 @@ public function eventStreamCountShouldNotHaveIncreased(string $uuid): void
473473
{
474474
$result = shell_exec(sprintf(
475475
"mysql -h mariadb -u root -psecret middleware_test -se \"SELECT COUNT(*) FROM event_stream WHERE uuid='%s'\"",
476-
$uuid,
476+
$uuid
477477
));
478478
$current = (int) trim((string) $result);
479479
$recorded = $this->recordedEventCounts[$uuid] ?? null;
@@ -486,7 +486,7 @@ public function eventStreamCountShouldNotHaveIncreased(string $uuid): void
486486
$uuid,
487487
$recorded,
488488
$current,
489-
$current - $recorded,
489+
$current - $recorded
490490
));
491491
}
492492
}

0 commit comments

Comments
 (0)