themsaid / laravel-langman

Language files manager in your artisan console.
MIT License
876 stars 166 forks source link

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

Open muath-ye opened 3 years ago

muath-ye commented 3 years ago

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 commented 3 years ago

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

mesiboku commented 2 years ago

can you comment the link @muath-ye ?

muath-ye commented 2 years ago

I don't understand what you mean.