codeigniter4 / CodeIgniter4

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
5.4k stars 1.9k forks source link

Bug: Spark Serve error #6409

Closed jolupa closed 2 years ago

jolupa commented 2 years ago

PHP Version

8.1

CodeIgniter4 Version

4.2.4

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Linux

Which server did you use?

cli-server (PHP built-in webserver)

Database

sqlite

What happened?

Just uupgrade to 4.2.4 and when I try to run the local server on CLI just this error shows. `[Error]

Call to undefined method CodeIgniter\HTTP\CLIRequest::getGet()

at SYSTEMPATH/Debug/Toolbar.php:452

Backtrace: 1 APPPATH/Config/Events.php:52 CodeIgniter\Debug\Toolbar()->respond()

2 SYSTEMPATH/Events/Events.php:149 CodeIgniter\Events\Events::Config{closure}()

3 SYSTEMPATH/CodeIgniter.php:317 CodeIgniter\Events\Events::trigger()

4 SYSTEMPATH/CLI/Console.php:48 CodeIgniter\CodeIgniter()->run()

5 ROOTPATH/spark:86 CodeIgniter\CLI\Console()->run()`

Steps to Reproduce

php spark serve

Expected Output

The internal php server running on local

Anything else?

Just in 4.2.4 don't have any problem running on 4.2.3 or 4.2.2

kenjis commented 2 years ago

Duplicate of #6365

kenjis commented 2 years ago

Can you show Config/Events.php ?

kenjis commented 2 years ago

I merged #6421 into develop branch. Please try the latest develop branch if you can.

If you still have the error, feel free to reopen.