You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version 4.0 alpha-1
Using a monolog will cause an error.
CRITICAL: Argument 5 passed to CodeIgniter\View\View::__construct() must be an instance of CodeIgniter\Log\Logger or null, instance of App\Libraries\MyLogger given, called in /app/ci4/ci4/system/Config/Services.php on line 497
version 4.0 alpha-1
Using a monolog will cause an error.
CRITICAL: Argument 5 passed to CodeIgniter\View\View::__construct() must be an instance of CodeIgniter\Log\Logger or null, instance of App\Libraries\MyLogger given, called in /app/ci4/ci4/system/Config/Services.php on line 497
-use CodeIgniter\Log\Logger;
+use Psr\Log\LoggerInterface;
-public function __construct($config, string $viewPath = null, $loader = null, bool $debug = null, Logger $logger = null)
+public function __construct($config, string $viewPath = null, $loader = null, bool $debug = null, LoggerInterface $logger = null)
It worked correctly by changing like this.
Is it wrong?
The text was updated successfully, but these errors were encountered: