Skip to content

Commit 15af371

Browse files
committed
Address implicit null declaration
1 parent a3405a4 commit 15af371

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Test/Unit/Config/Stage/DeployTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function setUp(): void
5959
*
6060
* @throws ConfigException
6161
*/
62-
public function testGet(string $name, $expectedValue, array $mergedConfig, array $schema = null): void
62+
public function testGet(string $name, $expectedValue, array $mergedConfig, array | null $schema = null): void
6363
{
6464
$this->mergedConfigMock->expects($this->once())
6565
->method('get')

src/Test/Unit/Config/Validator/Deploy/MagentoCloudVariablesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function setUp(): void
5959
public function testValidate(
6060
array $magentoCloudVariables,
6161
string $expectedResultType,
62-
string $suggestionMessage = null
62+
string | null $suggestionMessage = null
6363
): void {
6464
$this->environmentMock->expects($this->once())
6565
->method('getVariables')

src/Test/Unit/Config/Validator/Deploy/SessionCredentialsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function setUp(): void
5858
public function testValidate(
5959
array $sessionConfig,
6060
string $expectedResultType,
61-
string $expectedErrorMessage = null
61+
string | null $expectedErrorMessage = null
6262
): void {
6363
$this->sessionConfigMock->expects($this->once())
6464
->method('get')

src/Test/Unit/Step/ValidateConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function testExecuteTypeStringLevel(): void
278278
* @return MockObject|ValidatorInterface
279279
* @throws \ReflectionException
280280
*/
281-
private function createValidatorWithError(string $error, string $suggestion, int $errorCode = null): MockObject
281+
private function createValidatorWithError(string $error, string $suggestion, int | null $errorCode = null): MockObject
282282
{
283283
$warningValidator = $this->getMockForAbstractClass(ValidatorInterface::class);
284284
$warningResultMock = $this->createMock(Result\Error::class);

0 commit comments

Comments
 (0)