alex-ks
(13lex)
1
I updated framework using composer (advanced template) and now when I try to run codeception test there is error:
Fatal error: Cannot redeclare composerRequirebc5c2678bf7b7fa6324f49f2983d55f5()
(previously declared in C:\domains\mysite\www\vendor\composer\autoload_real.php:59) in C:\domains\mysite\www\vendor\composer\autoload_real.php on line
62
How to fix? Looks like /vendor/autoload.php includes several times.
alex-ks
(13lex)
2
Fixed it when deleted this line in /tests/_bootstrap.php
require_once(__DIR__ . '/../../vendor/autoload.php');
And that is strange because require_once shouldn’t include file again if it was included earlier…
You may want to record a github issue.
alex-ks
(13lex)
4