Skip to content

Commit 6ae5130

Browse files
authored
PHP 8.4: Declare types nullable explicitly
https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
1 parent dbf6800 commit 6ae5130

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Codeception/Lib/Connector/Yii2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public function getCsrfParamName(): string
250250
return $this->getApplication()->request->csrfParam;
251251
}
252252

253-
public function startApp(\yii\log\Logger $logger = null): void
253+
public function startApp(?\yii\log\Logger $logger = null): void
254254
{
255255
codecept_debug('Starting application');
256256
$config = require($this->configFile);

src/Codeception/Module/Yii2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,11 +723,11 @@ public function grabComponent(string $component): null|object
723723
* $I->seeEmailIsSent(3);
724724
* ```
725725
*
726-
* @param int $num
726+
* @param int|null $num
727727
* @throws \Codeception\Exception\ModuleException
728728
* @part email
729729
*/
730-
public function seeEmailIsSent(int $num = null): void
730+
public function seeEmailIsSent(?int $num = null): void
731731
{
732732
if ($num === null) {
733733
$this->assertNotEmpty($this->grabSentEmails(), 'emails were sent');

0 commit comments

Comments
 (0)