Skip to content

Commit

Permalink
Fix PHPStan issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 30, 2019
1 parent 0d58477 commit 61196b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Importer/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function parse(string $subject)

\preg_match_all('~[^\[\]]+|\[(?<nested>(?R)*)\]~', $subject, $matches);

foreach (\array_filter($matches['nested']) as $match) {
foreach ((array) \array_filter($matches['nested']) as $match) {
$item = [];
$position = \strpos($match, '[');

Expand Down

0 comments on commit 61196b0

Please sign in to comment.