Skip to content

Commit 02d8bd3

Browse files
author
Vincent Koeman
authored
Remove erroneous 'int' typehint from checkThrowable $expectedCode (#23)
1 parent 313673c commit 02d8bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Module/Asserts.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function expectThrowable($throwable, callable $callback): void
6060
* Check if the given throwable matches the expected data,
6161
* fail (throws an exception) if it does not.
6262
*/
63-
protected function checkThrowable(\Throwable $throwable, string $expectedClass, ?string $expectedMsg, ?int $expectedCode): void
63+
protected function checkThrowable(\Throwable $throwable, string $expectedClass, ?string $expectedMsg, $expectedCode = null): void
6464
{
6565
if (!($throwable instanceof $expectedClass)) {
6666
$this->fail(sprintf(

0 commit comments

Comments
 (0)