Skip to content

Conversation

@muath-ye
Copy link

@muath-ye muath-ye commented Mar 2, 2021

I found the issue when executing composer install

@php artisan package:discover

ErrorException : Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e)

at A:_WebDev_Projects\aymen-requests\laravel_application\vendor\themsaid\laravel-langman\src\Commands\FindCommand.php:113
109| $original = [];
110|
111| foreach ($allLanguages as $languageKey) {
112| $original[$languageKey] =

113| isset($values[$languageKey])
114| ? $values[$languageKey]
115| : isset($filesContent[$fileName][$languageKey][$key]) ? $filesContent[$fileName][$languageKey][$key] : '';
116| }
117|

Exception trace:

1 Illuminate\Foundation\Bootstrap\HandleExceptions::handleError("Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e)", "A:_WebDev_Projects\aymen-requests\laravel_application\vendor\themsaid\laravel-langman\src\Commands\FindCommand.php", ["A:_WebDev_Projects\aymen-requests\laravel_application\vendor\composer/../themsaid/laravel-langman/src/Commands/FindCommand.php"])
A:_WebDev_Projects\aymen-requests\laravel_application\vendor\composer\ClassLoader.php:444

2 include()
A:_WebDev_Projects\aymen-requests\laravel_application\vendor\composer\ClassLoader.php:444

Please use the argument -v to see more details.
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

And it solved as this stackoverflow answer:

https://stackoverflow.com/questions/61432488/php-error-unparenthesized-a-b-c-d-e-is-deprecated-use-either-a

@muath-ye
Copy link
Author

muath-ye commented Mar 2, 2021

@themsaid I would like to merge the PR to fix the issue

Copy link
Author

@muath-ye muath-ye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a fork

@mesiboku
Copy link

can you comment the link @muath-ye ?

@muath-ye
Copy link
Author

I don't understand what you mean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants