|
@@ -35,9 +35,7 @@ final class IntegrationCase
|
|
private ?string $inputCode;
|
|
private ?string $inputCode;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Env requirements (possible keys: 'php' or 'php<').
|
|
|
|
- *
|
|
|
|
- * @var array<string, int>|array{php: int}
|
|
|
|
|
|
+ * @var array{php: int, "php<"?: int, os: list<string>}
|
|
*/
|
|
*/
|
|
private array $requirements;
|
|
private array $requirements;
|
|
|
|
|
|
@@ -54,7 +52,7 @@ final class IntegrationCase
|
|
|
|
|
|
/**
|
|
/**
|
|
* @param array{checkPriority: bool, deprecations: list<string>, isExplicitPriorityCheck?: bool} $settings
|
|
* @param array{checkPriority: bool, deprecations: list<string>, isExplicitPriorityCheck?: bool} $settings
|
|
- * @param array<string, int>|array{php: int} $requirements
|
|
|
|
|
|
+ * @param array{php: int, "php<"?: int, os: list<string>} $requirements
|
|
* @param array{indent: string, lineEnding: string} $config
|
|
* @param array{indent: string, lineEnding: string} $config
|
|
*/
|
|
*/
|
|
public function __construct(
|
|
public function __construct(
|
|
@@ -105,7 +103,10 @@ final class IntegrationCase
|
|
return $this->inputCode;
|
|
return $this->inputCode;
|
|
}
|
|
}
|
|
|
|
|
|
- public function getRequirement(string $name): int
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @return mixed
|
|
|
|
+ */
|
|
|
|
+ public function getRequirement(string $name)
|
|
{
|
|
{
|
|
if (!\array_key_exists($name, $this->requirements)) {
|
|
if (!\array_key_exists($name, $this->requirements)) {
|
|
throw new \InvalidArgumentException(sprintf(
|
|
throw new \InvalidArgumentException(sprintf(
|
|
@@ -119,7 +120,7 @@ final class IntegrationCase
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @return array<string, int>|array{php: int}
|
|
|
|
|
|
+ * @return array{php: int, "php<"?: int, os: list<string>}
|
|
*/
|
|
*/
|
|
public function getRequirements(): array
|
|
public function getRequirements(): array
|
|
{
|
|
{
|