diff --git a/composer.json b/composer.json index bd4a812..eb1869f 100644 --- a/composer.json +++ b/composer.json @@ -21,12 +21,12 @@ "require": { "php": "^7.4 | ^8.0", "ext-json": "*", - "codeception/lib-innerbrowser": "^1.3", - "codeception/codeception": "^4.0" + "codeception/lib-innerbrowser": "^2.0", + "codeception/codeception": "^4.1" }, "require-dev": { - "codeception/module-asserts": "^1.3", - "codeception/module-rest": "^1.2", + "codeception/module-asserts": "^2.0", + "codeception/module-rest": "^2.0", "laravel/framework": "^6.0 | ^7.0 | ^8.0", "vlucas/phpdotenv": "^3.6 | ^4.1 | ^5.2" }, diff --git a/src/Codeception/Module/Laravel.php b/src/Codeception/Module/Laravel.php index a4cb839..fcadb79 100644 --- a/src/Codeception/Module/Laravel.php +++ b/src/Codeception/Module/Laravel.php @@ -25,11 +25,13 @@ use Codeception\TestInterface; use Codeception\Util\ReflectionHelper; use Illuminate\Contracts\Config\Repository as Config; +use Illuminate\Contracts\Foundation\Application as ApplicationContract; use Illuminate\Database\Connection; use Illuminate\Database\DatabaseManager; use Illuminate\Foundation\Application; use Illuminate\Routing\Route; use ReflectionException; +use Symfony\Component\BrowserKit\AbstractBrowser; use Symfony\Component\Routing\CompiledRoute as SymfonyCompiledRoute; use Throwable; @@ -140,12 +142,12 @@ class Laravel extends Framework implements ActiveRecord, PartedModule /** * @var Application */ - public $app; + public ApplicationContract $app; /** * @var LaravelConnector */ - public $client; + public ?AbstractBrowser $client; /** * @var array