Skip to content

Commit

Permalink
CS Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Aug 27, 2024
1 parent e42759f commit 91a73ab
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Properties/BaseProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ class BaseProperties implements Properties
protected string $baseName;
protected string $basePath;
protected ?string $baseUrl;
/** @var array<string, mixed> */
protected array $properties;

/**
* @param string $baseName
* @param string $basePath
* @param string|null $baseUrl
* @param array $properties
* @param array<string, mixed> $properties
*/
protected function __construct(
string $baseName,
Expand Down
1 change: 1 addition & 0 deletions src/Properties/PluginProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ protected function __construct(string $pluginMainFile)
$properties[$key] = $pluginData[$pluginDataKey] ?? '';
unset($pluginData[$pluginDataKey]);
}
/** @var array<string, mixed> $properties */
$properties = array_merge($properties, $pluginData);

$this->pluginMainFile = wp_normalize_path($pluginMainFile);
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Container/ContainerConfiguratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ public function testCustomContainer(): void

$childContainer = new class ($expectedId, $expectedValue) implements ContainerInterface
{
/** @var array<string, object> */
private array $values = [];

public function __construct(string $expectedId, object $expectedValue)
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Container/ReadOnlyContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function testHasGetServiceFromChildContainer(): void

$childContainer = new class ($expectedKey, $expectedValue) implements ContainerInterface
{
/** @var array<string, \stdClass> */
private array $data = [];

public function __construct(string $key, \stdClass $value)
Expand Down
5 changes: 5 additions & 0 deletions tests/unit/PackageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,7 @@ public function testFailureFlowWithFailureOnBootDebugModeOff(): void

static::assertFalse($package->boot());
static::assertTrue($package->statusIs(Package::STATUS_FAILED));
static::assertTrue($package->isFailed());
}

/**
Expand Down Expand Up @@ -971,6 +972,7 @@ function (\Throwable $throwable) use ($exception, $package): void {
);

static::assertFalse($package->addModule($module1)->addModule($module2)->build()->boot());
static::assertTrue($package->isFailed());
static::assertTrue($package->statusIs(Package::STATUS_FAILED));
}

Expand Down Expand Up @@ -1025,6 +1027,7 @@ function (\Throwable $throwable) use ($exception, $package): void {
static::assertFalse($package->connect($connected));
static::assertFalse($package->boot());
static::assertTrue($package->statusIs(Package::STATUS_FAILED));
static::assertTrue($package->isFailed());
}

/**
Expand Down Expand Up @@ -1066,6 +1069,7 @@ function (\Throwable $throwable) use ($exception, $package): void {

static::assertFalse($package->build()->boot());
static::assertTrue($package->statusIs(Package::STATUS_FAILED));
static::assertTrue($package->isFailed());
}

/**
Expand All @@ -1089,6 +1093,7 @@ public function testFailureFlowWithFailureOnBuildDebugModeOn(): void
static function (\Throwable $throwable) use ($exception, $package): void {
static::assertSame($exception, $throwable);
static::assertTrue($package->statusIs(Package::STATUS_FAILED));
static::assertTrue($package->isFailed());
}
);

Expand Down

0 comments on commit 91a73ab

Please sign in to comment.