fix: static callable datasets

This commit is contained in:
nuno maduro
2026-08-13 18:38:27 +01:00
parent 9b36f44b3e
commit 2c7cc1dc87
4 changed files with 29 additions and 4 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ final class DatasetsRepository
$datasets[$index] = self::getScopedDataset($data, $currentTestFile);
}
if (is_callable($datasets[$index])) {
if (! is_array($datasets[$index]) && is_callable($datasets[$index])) {
$datasets[$index] = call_user_func($datasets[$index]);
}