laravel-langman-gui icon indicating copy to clipboard operation
laravel-langman-gui copied to clipboard

Initial scan fails with "array_key_exists() expects parameter 2 to be array, null given"

Open brians-code opened this issue 7 years ago • 0 comments

On the initial scan of a fresh install, I got this error:

local.ERROR: array_key_exists() expects parameter 2 to be array, null given {"exception":"[object] (ErrorException(code: 0): array_key_exists() expects parameter 2 to be array, null given at /home/ubuntu/leadingre_com/vendor/themsaid/laravel-langman-gui/src/Manager.php:96) [stacktrace]

Once I manually created the first key and translation, the scan worked and found all the existing keys in my views. Adding $keys = [] beneath the scan $output = []; should solve it.

brians-code avatar Dec 14 '17 16:12 brians-code