-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
php artisan lychee:sync failing with Unresolvable dependency resolving bool $enableCLIFormatting #1319
Conversation
I am not sure, if I like the change, because IMHO there is no sensible default whether CLI formatting should be enabled or not. If at all, then the default should be However, I am not sure, why you get this error at all. I cannot reproduce it and there are only exactly two places places where the constructor is invoked.
In both cases, the 2nd parameter is given. Are you sure that your working directory is clean and that you don't have a modified |
Oh, sorry my fault. The true error is in this line Lychee/app/Console/Commands/Sync.php Line 64 in 7a0c791
If you want, could you revert your previous commit and remove the parameter The code /**
* Execute the console command.
*
* @param Exec $exec
*
* @return int
*
* @throws ExternalLycheeException
*/
public function handle(Exec $exec): int should be /**
* Execute the console command.
*
* @return int
*
* @throws ExternalLycheeException
*/
public function handle(): int |
Changes applied. Honestly thank you so much for your diligence!!! |
No problem. Does it work now? |
I have to test tonight. Will update here. |
…g bool $enableCLIFormatting fixes LycheeOrg#1318 Getting the following exception: ``` Unresolvable dependency resolving [Parameter LycheeOrg#1 [ <required> bool $enableCLIFormatting ]] in class App\Actions\Import\Exec ``` when running: ``` php artisan lychee:sync myfolder ```
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
I could test it works well with that fix as well :-) |
fixes #1318
Getting the following exception:
when running: