- Minor bugfixes

This commit is contained in:
Dave Mc Nicoll 2023-11-01 11:30:49 -04:00
parent 7a06f5fd64
commit f6d86001d5
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ class LdapObject {
public function runUpdateQuery(array $filter, array $dataset)
{
static::$dump && call_user_func_array(static::$dump, [ $filter, $dataset ]);
dump($filter, $dataset);
if ( false === ( $queryResult = ldap_mod_replace($this->connection, $filter['dn'], $dataset) ) ) {
$this->throwLdapException();
}

View File

@ -241,7 +241,7 @@ class QueryBuilder implements Ulmus\Query\QueryBuilderInterface
return null;
}
public function removeFragment(Ulmus\Query\Fragment $fragment) : void
public function removeFragment(array|string|Ulmus\Query\Fragment|\Stringable $fragment) : void
{
foreach($this->queryStack as $key => $item) {
if ( $item === $fragment ) {