Showing 116 of 116 total issues
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private array $stages = [];
- Exclude checks
syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private string $indentation = '';
- Exclude checks
Replace this function name "onError" with "__construct". Open
Open
public function onError(WorkflowStep $step): self
- Read upRead up
- Exclude checks
In PHP 4, any function with the same name as the nesting class was considered a class constructor. In PHP 5, this mechanism has been deprecated and the "__construct" method name should be used instead. If both styles are present in the same class, PHP 5 will treat the function named "__construct" as the class constructor.
This rule rule raises an issue for each method with the same name as the enclosing class.
Noncompliant Code Example
class Foo { function Foo(){...} }
Compliant Solution
class Foo { function __construct(){...} }
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
protected array $items = [];
- Exclude checks
syntax error, unexpected ')'
Open
Open
);
- Exclude checks
syntax error, unexpected ')'
Open
Open
);
- Exclude checks
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private array $validators = [];
- Exclude checks
syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private string $description;
- Exclude checks
syntax error, unexpected 'WorkflowResult' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private WorkflowResult $workflowResult;
- Exclude checks
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private array $steps = [];
- Exclude checks
Call with 1 arg(s) to \PHPWorkflow\Stage\Before::__construct()
which only takes 0 arg(s) defined at /code/src/Stage/Before.php:11
Open
Open
return $this->nextStage = (new Before($this->workflow))->before($step);
- Exclude checks
syntax error, unexpected 'ExecutableWorkflow' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private ExecutableWorkflow $nestedWorkflow;
- Exclude checks
syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private string $name;
- Exclude checks
syntax error, unexpected 'WorkflowContainer' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private WorkflowContainer $parentContainer;
- Exclude checks
syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private string $path;
- Exclude checks
syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private string $info;
- Exclude checks