Skip to content

Commit 565c3bc

Browse files
author
Pascal Querner
committed
chore: phptan: add ignore line comment about internal method
1 parent 7ab702a commit 565c3bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/Mage/Core/Helper/EnvironmentConfigLoaderTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,15 @@ public function testBuildPath(): void
5555
public function testEnvFilter(): void
5656
{
5757
$environmentConfigLoaderHelper = new EnvironmentConfigLoaderTestHelper();
58+
/** @phpstan-ignore method.internal */
5859
$environmentConfigLoaderHelper->setEnvStore([
5960
'OPENMAGE_CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME' => 'some_value',
6061
]);
6162
// empty because env flag is not set
6263
$env = $environmentConfigLoaderHelper->getEnv();
6364
static::assertIsArray($env);
6465
static::assertEmpty($env);
66+
/** @phpstan-ignore method.internal */
6567
$environmentConfigLoaderHelper->setEnvStore([
6668
'OPENMAGE_CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME' => 'some_value',
6769
'OPENMAGE_CONFIG_OVERRIDE_ALLOWED' => 1, // enable feature
@@ -209,6 +211,7 @@ public function testAsArray(array $config): void
209211
{
210212
// phpcs:ignore Ecg.Classes.ObjectInstantiation.DirectInstantiation
211213
$loader = new Mage_Core_Helper_EnvironmentConfigLoader();
214+
/** @phpstan-ignore method.internal */
212215
$loader->setEnvStore([
213216
'OPENMAGE_CONFIG_OVERRIDE_ALLOWED' => 1,
214217
$config['env_path'] => 1,
@@ -258,6 +261,7 @@ public function testHasPath(array $config): void
258261
{
259262
// phpcs:ignore Ecg.Classes.ObjectInstantiation.DirectInstantiation
260263
$loader = new Mage_Core_Helper_EnvironmentConfigLoader();
264+
/** @phpstan-ignore method.internal */
261265
$loader->setEnvStore([
262266
'OPENMAGE_CONFIG_OVERRIDE_ALLOWED' => 1,
263267
$config['env_path'] => 1,

0 commit comments

Comments
 (0)