File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ protected function linesFromJsonFile($file)
111
111
112
112
foreach ($ encoded as $ index => $ keys ) {
113
113
// Pretty likely the be on the line that is the index, go happy path first
114
- if (strpos ($ lines [$ index + 1 ], $ keys [0 ]) !== false ) {
114
+ if (strpos ($ lines [$ index + 1 ] ?? '' , $ keys [0 ]) !== false ) {
115
115
$ result [$ keys [1 ]] = $ index + 2 ;
116
116
continue ;
117
117
}
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ $translator = new class
111
111
112
112
foreach ($encoded as $index => $keys) {
113
113
// Pretty likely the be on the line that is the index, go happy path first
114
- if (strpos($lines[$index + 1], $keys[0]) !== false) {
114
+ if (strpos($lines[$index + 1] ?? '' , $keys[0]) !== false) {
115
115
$result[$keys[1]] = $index + 2;
116
116
continue;
117
117
}
You can’t perform that action at this time.
0 commit comments