Skip to content

Commit

Permalink
PHPStan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Oct 8, 2024
1 parent c35f459 commit fa0f257
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Test/Integration/GraphQlTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class GraphQlTestCase extends AbstractTestCase
*/
protected function getGraphQlQueryData(string $query): array
{
// @phpstan-ignore-next-line
$graphQlRequest = $this->objectManager->get(GraphQlRequest::class);
$response = $graphQlRequest->send($query);
return json_decode($response->getContent(), true);
Expand Down
6 changes: 5 additions & 1 deletion Test/Integration/Traits/AssertModuleIsRegisteredForReal.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ trait AssertModuleIsRegisteredForReal

protected function assertModuleIsRegisteredForReal(string $moduleName)
{
$directoryList = $this->om()->create(DirectoryList::class, ['root' => BP]); // @phpstan-ignore
if (!defined('BP')) {
define('BP', __DIR__);
}

$directoryList = $this->om()->create(DirectoryList::class, ['root' => BP]);
$deploymentConfigReader = $this->om()->create(DeploymentConfigReader::class, ['dirList' => $directoryList]);
$deploymentConfig = $this->om()->create(DeploymentConfig::class, ['reader' => $deploymentConfigReader]);

Expand Down

0 comments on commit fa0f257

Please sign in to comment.