Skip to content

Fix: Deprecated Unparenthesized a ? b : c ? d : e` #106

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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