Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on PHP 7.x #20

Open
tomomo opened this issue Apr 20, 2021 · 3 comments
Open

Can't install on PHP 7.x #20

tomomo opened this issue Apr 20, 2021 · 3 comments

Comments

@tomomo
Copy link

tomomo commented Apr 20, 2021

Hello.

php cli ... cannot be executed.

composer create-project kenjis/codeigniter-composer-installer example
cd $_
composer require kenjis/codeigniter-cli --dev
php vendor/kenjis/codeigniter-cli/install.php
php cli                                                                                                                                                                 ~/Workspace/example

PHP Fatal error:  Uncaught TypeError: Argument 4 passed to Aura\Project_Kernel\Project::__construct() must be of the type array, object given, called in /Users/teketeke/Workspace/example/vendor/aura/project-kernel/src/Factory.php on line 118 and defined in /Users/teketeke/Workspace/example/vendor/aura/project-kernel/src/Project.php:79
Stack trace:
#0 /Users/teketeke/Workspace/example/vendor/aura/project-kernel/src/Factory.php(118): Aura\Project_Kernel\Project->__construct()
#1 /Users/teketeke/Workspace/example/vendor/aura/project-kernel/src/Factory.php(82): Aura\Project_Kernel\Factory->newProject()
#2 /Users/teketeke/Workspace/example/vendor/aura/project-kernel/src/Factory.php(48): Aura\Project_Kernel\Factory->newContainer()
#3 /Users/teketeke/Workspace/example/cli(29): Aura\Project_Kernel\Factory->newKernel()
#4 {main}
  thrown in /Users/teketeke/Workspace/example/vendor/aura/project-kernel/src/Project.php on line 79

I think this is due to the change in Aura.
Will this package be unsupported?

development

php 7.3, 7.4

@kenjis
Copy link
Owner

kenjis commented Apr 22, 2021

At the moment, this package does not work with Composer 2.0.
See https://github.com/kenjis/codeigniter-tettei-apps#%E4%BE%9D%E5%AD%98%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB.

I think this is due to the change in Aura.

No. This is because Aura is out of dated.
To work with PHP 7.3 or 7.4, we need this PR auraphp/Aura.Cli_Kernel#12

@tomomo
Copy link
Author

tomomo commented May 10, 2021

Sorry for the delay in sending.

I Confirmed. It's the "composer" version.

I see...
It may be time to give up CI3 and move to CI4.

It was very useful. Thank you.

@tomomo tomomo closed this as completed May 10, 2021
@kenjis kenjis reopened this Jun 21, 2021
@kenjis
Copy link
Owner

kenjis commented Jul 14, 2021

Now we are updating Aura. See auraphp/Aura.Cli_Kernel#13

@kenjis kenjis changed the title php cli ... cannot be executed. Can't install on PHP 7.x Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants