1
0
mirror of https://github.com/dg/dibi.git synced 2025-09-01 10:02:53 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
David Grudl
dbbf0ca673 Revert "PhpStan fixes (#363)"
This reverts commit 68f9d0981f194931e475e2c93730d8e8785c20e4.
2020-05-07 21:42:36 +02:00
Jan Barášek
1bdf6e93d0 PhpStan fixes (#363) 2020-05-07 21:41:28 +02:00

View File

@@ -242,6 +242,9 @@ class Result implements IDataSource
$data = null;
$assoc = preg_split('#(\[\]|->|=|\|)#', $assoc, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
if (!$assoc) {
throw new \InvalidArgumentException("Invalid descriptor '$assoc'.");
}
// check columns
foreach ($assoc as $as) {