Codeception / module-laravel

Modern Laravel module for Codeception
MIT License
5 stars 13 forks source link

Codeception 5 support #40

Closed Naktibalda closed 2 years ago

Naktibalda commented 2 years ago

I will try to fix CI

Naktibalda commented 2 years ago

I noticed 2 issues while testing Laravel 6.

  1. It is incompatible with PHP 8.1
  2. It requires vlucas/phpdotenv v3, but Codeception 5 dropped support for vlucas/phpdotenv v3 and v4.
  During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be c
  ompatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
   the notice in /.../laravel-module-tests/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1277
PHP Fatal error:  Uncaught Error: Class "Dotenv\Repository\RepositoryBuilder" not found in /.../laravel-module-tests/vendor/codeception/codeception/src/Codeception/Lib/ParamsLoader.php:119
TavoNiievez commented 2 years ago

@Naktibalda I wrote it a while ago as well at https://github.com/Codeception/laravel-module-tests/pull/4#issuecomment-861127600 Laravel 6 is supported until September this year, with considerably less time than June from last year, so you can remove its support and test only with Laravel 8.