- Completed merge

This commit is contained in:
mcndave committed 2022-07-15 19:59:38 +00:00
1 parent 430cd03bc4
commit 00ebf3381f
10 files changed
+93 -34

No files matched your search

+1 -1
View File
@@ -463,7 +463,7 @@ class QueryBuilder implements Query\QueryBuilderInterface
public function getFragments(/*? Query\Fragment|array*/ $fragment = null) : array
{
return $fragment === null ? array_filter($this->queryStack, fn($e) => get_class($e) === $fragment) : $this->queryStack;
return $fragment !== null ? array_filter($this->queryStack, fn($e) => is_a($e, $fragment, true) ) : $this->queryStack;
}
public function __toString() : string