Skip to content

Commit

Permalink
Add missing type declaration, raise PHP version incompatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
reimic committed Mar 4, 2024
1 parent 8fb5513 commit ea3da1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/WordPress/Blueprints/Model/DataClass/UnzipStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class UnzipStep implements StepDefinitionInterface {
public Progress $progress;

/** @var bool */
public $continueOnError;
public bool $continueOnError;

/**
* Step
Expand All @@ -24,7 +24,9 @@ class UnzipStep implements StepDefinitionInterface {
*
* @var string|ResourceDefinitionInterface
*/
public $zip_file;

// @TODO: Union types are PHP >= 8.0. Fix needed.
public string|ResourceDefinitionInterface $zip_file;

/**
* The path to extract the zip file to
Expand Down

0 comments on commit ea3da1e

Please sign in to comment.