diff --git a/composer.json b/composer.json index 11ef1e8..015137e 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "vitexsoftware/ease-core": ">= 1.44" + "vitexsoftware/ease-core": "^1.45" }, "autoload": { "psr-4": { diff --git a/src/Ease/Container.php b/src/Ease/Container.php index 8ad4a49..6393d9f 100644 --- a/src/Ease/Container.php +++ b/src/Ease/Container.php @@ -137,7 +137,9 @@ public function getFirstPart() /** * Insert an array of elements. * - * @param array $itemes value field or EaseObject with draw () method + * @param array $itemes value field or EaseObject with draw () method + * + * @return array inserted items */ public function addItems(array $itemes): array { diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index e902406..06111f9 100644 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -15,7 +15,7 @@ require_once __DIR__.'/../vendor/autoload.php'; -if ((\PHP_SAPI !== 'cli') && (session_status() === 'PHP_SESSION_NONE')) { +if ((\PHP_SAPI !== 'cli') && (session_status() === \PHP_SESSION_NONE)) { session_start(); } else { $_SESSION = []; @@ -26,4 +26,4 @@ \Ease\Locale::singleton('cs_CZ'); // \Ease\Shared::webPage(new \Ease\WebPage()); -\Ease\Shared::user(\Ease\User::singleton(null, '\Ease\User')); +\Ease\Shared::user(new \Ease\User);