Skip to content

Commit

Permalink
Fix PHP 7.0 & 7.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 28, 2024
1 parent 5a30c15 commit 000288e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/php/web/frontend/unittest/HtmxFlowTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function authenticate($request, $response, $session) {
#[Test]
public function delegates_refreshing() {
$flow= new HtmxFlow(new class() extends Flow {
public function refresh($claims) {
public function refresh(array $claims) {
return newinstance(Authorization::class, [], [
'claims' => function() use($claims) { return ['token' => 'new'] + $claims; }
]);
Expand Down

0 comments on commit 000288e

Please sign in to comment.