We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 313673c commit 02d8bd3Copy full SHA for 02d8bd3
src/Codeception/Module/Asserts.php
@@ -60,7 +60,7 @@ public function expectThrowable($throwable, callable $callback): void
60
* Check if the given throwable matches the expected data,
61
* fail (throws an exception) if it does not.
62
*/
63
- protected function checkThrowable(\Throwable $throwable, string $expectedClass, ?string $expectedMsg, ?int $expectedCode): void
+ protected function checkThrowable(\Throwable $throwable, string $expectedClass, ?string $expectedMsg, $expectedCode = null): void
64
{
65
if (!($throwable instanceof $expectedClass)) {
66
$this->fail(sprintf(
0 commit comments