Skip to content

Commit

Permalink
fix php7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Surkov committed Aug 29, 2021
1 parent 9dbe90e commit 8f4e795
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions src/Core/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@ class Core extends Container implements CoreInterface
* Class names Runners {@see \Symbiotic\Core\Runner}
* @var string[]
*/
protected array $runners = [];
protected $runners = [];

/**
* @var string|null
*/
protected ?string $base_path;
protected $base_path = null;

/**
* The bootstrap classes for the application.
*
* @var array
*/
protected array $bootstraps = [];
protected $bootstraps = [];

/**
* The bootstrap classes for the application.
*
* @var array
*/
protected array $last_bootstraps = [
protected $last_bootstraps = [
ProvidersBootstrap::class,
BootBootstrap::class,
];
Expand All @@ -51,20 +51,20 @@ class Core extends Container implements CoreInterface
* @var \Closure[]|array
* @used-by Core::runNext()
*/
protected array $then = [];
protected $then = [];

/**
* используется после успешной отработки фреймворка
* @var \Closure[]|array
* @used-by Core::runComplete()
* @see Core::onComplete()
*/
protected array $complete = [];
protected $complete = [];

/**
* @var \CLosure[]|array
*/
protected array $before_handle = [];
protected $before_handle = [];

public function __construct(array $config = [])
{
Expand All @@ -80,7 +80,7 @@ public function __construct(array $config = [])
/**
* @param string| string[] $bootstraps
*/
public function addBootstraps(string|array $bootstraps): void
public function addBootstraps($bootstraps): void
{
foreach ((array)$bootstraps as $v) {
$this->bootstraps[] = $v;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/CoreInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface CoreInterface extends DIContainerInterface, ServiceContainerInterface
* @param string | string[] $bootstraps class name implemented {@see BootstrapInterface}
* @return mixed
*/
public function addBootstraps(string|array $bootstraps);
public function addBootstraps($bootstraps);

/**
* Determine if the application has booted.
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Middleware/RequestPrefixMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class RequestPrefixMiddleware implements MiddlewareInterface
/**
* @var null|string
*/
protected ?string $uri_prefix;
protected $uri_prefix = null;

/**
* @var ResponseFactoryInterface|null
*/
protected ResponseFactoryInterface $response_factory;
protected $response_factory;

/**
* RequestPrefixMiddleware constructor.
Expand Down

0 comments on commit 8f4e795

Please sign in to comment.