Skip to content

Commit

Permalink
fix PHP7.4 syntax compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Enno Woortmann committed Apr 20, 2022
1 parent 0d7adc4 commit 8eba792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/StepDependencyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function invalidDateTimeValueDataProvider(): iterable
(new WorkflowContainer())->set('created', $input),
"Value for 'created' has an invalid type. Expected DateTime, got "
. gettype($input)
. (is_object($input) ? sprintf(' (%s)', $input::class) : ''),
. (is_object($input) ? sprintf(' (%s)', get_class($input)) : ''),
];
}

Expand All @@ -268,7 +268,7 @@ public function invalidDateTimeValueDataProvider(): iterable
(new WorkflowContainer())->set('created', new DateTime())->set('updated', $input),
"Value for 'updated' has an invalid type. Expected ?DateTime, got "
. gettype($input)
. (is_object($input) ? sprintf(' (%s)', $input::class) : ''),
. (is_object($input) ? sprintf(' (%s)', get_class($input)) : ''),
];
}
}
Expand Down

0 comments on commit 8eba792

Please sign in to comment.