diff --git a/tests/Type/Nette/data/strings-match.php b/tests/Type/Nette/data/strings-match.php index 011f0e9..5236e30 100644 --- a/tests/Type/Nette/data/strings-match.php +++ b/tests/Type/Nette/data/strings-match.php @@ -40,6 +40,6 @@ function (string $s): void { }; function (string $s): void { - $result = Strings::matchAll($lineContent, '~\[gallery ids=(„|")(?([0-9]+,? ?)+)(“|")~'); - assertType('list', $result); + $result = Strings::matchAll($s, '~\[gallery ids=(„|")(?([0-9]+,? ?)+)(“|")~'); + assertType("list", $result); };