Skip to content

Commit

Permalink
Merge pull request #33191 from blackfireio/bot-update-deps-phive
Browse files Browse the repository at this point in the history
Update PHIVE dependencies
  • Loading branch information
romainneutron committed Mar 4, 2024
2 parents de8f00d + 2bd8816 commit 3ffc11d
Show file tree
Hide file tree
Showing 20 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Player/Build/Build.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
public function __construct(
public string $uuid,
public string|null $url = null,
public ?string $url = null,
) {
}
}
2 changes: 1 addition & 1 deletion Player/BuildApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getOrCreate(string $env, ScenarioSet $scenarioSet): Build
return $build;
}

public function createBuild(string|null $buildName, string $env): Build
public function createBuild(?string $buildName, string $env): Build
{
$options = [
'trigger_name' => 'Blackfire Player',
Expand Down
2 changes: 1 addition & 1 deletion Player/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/
final class Application extends BaseApplication
{
public function __construct(BlackfireSdkAdapterInterface|null $blackfireSdk, HttpClientInterface|null $blackfireHttpClient, string $transactionId)
public function __construct(?BlackfireSdkAdapterInterface $blackfireSdk, ?HttpClientInterface $blackfireHttpClient, string $transactionId)
{
parent::__construct('Blackfire Player', Player::version());

Expand Down
6 changes: 3 additions & 3 deletions Player/Console/PlayerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ final class PlayerCommand extends Command
public const EXIT_CODE_SCENARIO_ERROR_NON_FATAL = 66;
public const EXIT_CODE_BLACKFIRE_NETWORK_ERROR = 67;

private HttpClientInterface|null $blackfireHttpClient;
private BlackfireSdkAdapterInterface|null $blackfireSdkAdapter;
private ?HttpClientInterface $blackfireHttpClient;
private ?BlackfireSdkAdapterInterface $blackfireSdkAdapter;
private string $transactionId;

public function __construct(
HttpClientInterface|null $blackfireHttpClient, BlackfireSdkAdapterInterface|null $blackfireSdkAdapter, string $transactionId)
?HttpClientInterface $blackfireHttpClient, ?BlackfireSdkAdapterInterface $blackfireSdkAdapter, string $transactionId)
{
$this->blackfireHttpClient = $blackfireHttpClient;
$this->blackfireSdkAdapter = $blackfireSdkAdapter;
Expand Down
2 changes: 1 addition & 1 deletion Player/Extension/BlackfireEnvResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
private const DEPRECATION_ENV_RESOLVING = 'Resolving an environment at the scenario level using the "blackfire" property is deprecated. Please use `--blackfire-env` instead.';

public function __construct(
private string|null $defaultEnv,
private ?string $defaultEnv,
private ExpressionLanguage $language,
) {
}
Expand Down
2 changes: 1 addition & 1 deletion Player/Http/CrawlerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class CrawlerFactory
{
public static function create(Response $response, string|null $uri): ?Crawler
public static function create(Response $response, ?string $uri): ?Crawler
{
$contentType = $response->headers['content-type'][0] ?? null;
if (!$contentType) {
Expand Down
4 changes: 2 additions & 2 deletions Player/PlayerNext.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class PlayerNext
{
/** @var (StepExtensionInterface|ScenarioExtensionInterface|ScenarioSetExtensionInterface|NextStepExtensionInterface|ExceptionExtensionInterface)[][] */
private array $extensions = [];
private array|null $extensionsSorted = null;
private AbstractStep|null $currentStep = null;
private ?array $extensionsSorted = null;
private ?AbstractStep $currentStep = null;

public function __construct(
private readonly StepContextFactory $stepContextFactory,
Expand Down
2 changes: 1 addition & 1 deletion Player/Scenario.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getType(): ?string
return null;
}

public function getBlackfireBuildUuid(): string|null
public function getBlackfireBuildUuid(): ?string
{
return $this->blackfireBuildUuid;
}
Expand Down
6 changes: 3 additions & 3 deletions Player/ScenarioContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
*/
class ScenarioContext
{
private Response|null $lastResponse = null;
private Crawler|null $crawler = null;
private ?Response $lastResponse = null;
private ?Crawler $crawler = null;
private ValueBag $valueBag;
private ValueBag $extraBag;

Expand Down Expand Up @@ -102,7 +102,7 @@ public function getName(): ?string
return $this->name;
}

public function getScenarioSet(): ScenarioSet|null
public function getScenarioSet(): ?ScenarioSet
{
return $this->scenarioSet;
}
Expand Down
4 changes: 2 additions & 2 deletions Player/ScenarioResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ScenarioResult
{
public function __construct(
private readonly ScenarioContext $scenarioContext,
private \Throwable|null $error,
private ?\Throwable $error,
) {
}

Expand Down Expand Up @@ -53,7 +53,7 @@ public function getError(): ?\Throwable
return $this->error;
}

public function getScenarioName(): string|null
public function getScenarioName(): ?string
{
return $this->scenarioContext->getName();
}
Expand Down
8 changes: 4 additions & 4 deletions Player/Step/ConditionStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
class ConditionStep extends BlockStep
{
private AbstractStep|null $ifStep = null;
private AbstractStep|null $elseStep = null;
private ?AbstractStep $ifStep = null;
private ?AbstractStep $elseStep = null;

public function __construct(
private readonly string $condition,
Expand Down Expand Up @@ -59,12 +59,12 @@ public function getCondition(): string
return $this->condition;
}

public function getIfStep(): AbstractStep|null
public function getIfStep(): ?AbstractStep
{
return $this->ifStep;
}

public function getElseStep(): AbstractStep|null
public function getElseStep(): ?AbstractStep
{
return $this->elseStep;
}
Expand Down
4 changes: 2 additions & 2 deletions Player/Step/LoopStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class LoopStep extends BlockStep
{
private AbstractStep|null $loopStep = null;
private ?AbstractStep $loopStep = null;

public function __construct(
private readonly string $values,
Expand Down Expand Up @@ -48,7 +48,7 @@ public function getValues(): string
return $this->values;
}

public function getLoopStep(): AbstractStep|null
public function getLoopStep(): ?AbstractStep
{
return $this->loopStep;
}
Expand Down
4 changes: 2 additions & 2 deletions Player/Step/StepInitiatorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function getInitiator(): ?Step
return $this->initiator;
}

public function setInitiator(Step|null $step): void
public function setInitiator(?Step $step): void
{
if ($step instanceof StepInitiatorInterface) {
$this->initiator = $step->getInitiator() ?? $step;
Expand All @@ -32,7 +32,7 @@ public function setInitiator(Step|null $step): void
}
}

public function getInitiatorUuid(): string|null
public function getInitiatorUuid(): ?string
{
return $this->initiator?->getUuid();
}
Expand Down
4 changes: 2 additions & 2 deletions Player/Step/WhileStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class WhileStep extends BlockStep
{
private AbstractStep|null $whileStep = null;
private ?AbstractStep $whileStep = null;

public function __construct(
private readonly string $condition,
Expand Down Expand Up @@ -46,7 +46,7 @@ public function getCondition(): string
return $this->condition;
}

public function getWhileStep(): AbstractStep|null
public function getWhileStep(): ?AbstractStep
{
return $this->whileStep;
}
Expand Down
2 changes: 1 addition & 1 deletion Player/StepProcessor/ExpressionEvaluator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
) {
}

public function evaluateExpression(string|null $expression, StepContext $stepContext, ScenarioContext $scenarioContext, bool $trim = true): mixed
public function evaluateExpression(?string $expression, StepContext $stepContext, ScenarioContext $scenarioContext, bool $trim = true): mixed
{
if (!$expression) {
return $expression;
Expand Down
2 changes: 1 addition & 1 deletion Player/StepProcessor/StepContextFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
) {
}

public function createStepContext(AbstractStep $step, StepContext $parentStepContext): StepContext|null
public function createStepContext(AbstractStep $step, StepContext $parentStepContext): ?StepContext
{
if (!$step instanceof ConfigurableStep) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion Player/StepProcessor/UriResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
class UriResolver
{
public function resolveUri(string|null $baseUri, string $uri): string
public function resolveUri(?string $baseUri, string $uri): string
{
if (!$baseUri) {
if (null === parse_url($uri, \PHP_URL_SCHEME)) {
Expand Down
2 changes: 1 addition & 1 deletion Player/Tests/Console/MockServerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

trait MockServerTrait
{
protected static Process|null $server = null;
protected static ?Process $server = null;

public static function getRunningServer(string $fixturesDir, ?string $port = null): Process
{
Expand Down
4 changes: 2 additions & 2 deletions Player/Tests/Http/JsonViewLoggerHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class JsonViewLoggerHttpClient implements HttpClientInterface
{
use AsyncDecoratorTrait;

private array|null $lastJsonView;
private ?array $lastJsonView;

public function __construct(
private readonly HttpClientInterface $httpClient,
Expand All @@ -45,7 +45,7 @@ public function resetLastJsonView(): void
$this->lastJsonView = null;
}

public function getLastJsonView(): array|null
public function getLastJsonView(): ?array
{
return $this->lastJsonView;
}
Expand Down
2 changes: 1 addition & 1 deletion phive.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpstan" version="^1.5.0" installed="1.10.59" location="./bin/tools/phpstan" copy="true"/>
<phar name="php-cs-fixer" version="^3.0" installed="3.50.0" location="./bin/tools/php-cs-fixer" copy="true"/>
<phar name="php-cs-fixer" version="^3.0" installed="3.51.0" location="./bin/tools/php-cs-fixer" copy="true"/>
</phive>

0 comments on commit 3ffc11d

Please sign in to comment.