Skip to content

Commit fa0f257

Browse files
committed
PHPStan fixes
1 parent c35f459 commit fa0f257

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Test/Integration/GraphQlTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class GraphQlTestCase extends AbstractTestCase
1717
*/
1818
protected function getGraphQlQueryData(string $query): array
1919
{
20+
// @phpstan-ignore-next-line
2021
$graphQlRequest = $this->objectManager->get(GraphQlRequest::class);
2122
$response = $graphQlRequest->send($query);
2223
return json_decode($response->getContent(), true);

Test/Integration/Traits/AssertModuleIsRegisteredForReal.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ trait AssertModuleIsRegisteredForReal
1414

1515
protected function assertModuleIsRegisteredForReal(string $moduleName)
1616
{
17-
$directoryList = $this->om()->create(DirectoryList::class, ['root' => BP]); // @phpstan-ignore
17+
if (!defined('BP')) {
18+
define('BP', __DIR__);
19+
}
20+
21+
$directoryList = $this->om()->create(DirectoryList::class, ['root' => BP]);
1822
$deploymentConfigReader = $this->om()->create(DeploymentConfigReader::class, ['dirList' => $directoryList]);
1923
$deploymentConfig = $this->om()->create(DeploymentConfig::class, ['reader' => $deploymentConfigReader]);
2024

0 commit comments

Comments
 (0)