Welcome Guest, Not a member yet? Register   Sign In
New CI4 App generating errors
#1

(This post was last modified: 02-25-2020, 09:05 AM by cerad.)

Thought I would give the newly release version a try with php 7.4.3.
Code:
composer create-project codeigniter4/appstarter c400
cd c400
# Not sure if this is needed
php builds development
composer update
#
php spark serve
Results in:
Code:
CodeIgniter CLI Tool - Version 4.0.1 - Server-Time: 2020-02-24 10:41:36am

PHP Fatal error:  Cannot declare class CodeIgniter\Commands\CommandsTestStreamFilter, because the name is already in use in /home/ahundiak/zayso2020/c400/tests/_support/Commands/CommandsTestStreamFilter.php on line 3
PHP Stack trace:
PHP   1. {main}() /home/ahundiak/zayso2020/c400/spark:0
PHP   2. CodeIgniter\CLI\Console->run() /home/ahundiak/zayso2020/c400/spark:57
blah blah blah
Stepping my way through the spark code now but I'm wonder if anyone else has ran into this out of the box?
Reply
#2

I have the same problem
Reply
#3

I believe this issue has been identified and the fix is in. I suspect a patch release will be available pretty quickly.
Reply
#4

It has been identified. Waiting for tests to complete but it looks like that file is no longer used anywhere in the tests and can be safely deleted. Official patch coming tonight assuming it passes tests on Travis.
Reply
#5

In case anyone is following this, I just tried a composer update but got the same error.

So I started over and now spark serve works as expected. So that is progress.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB