We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d89d21 commit 52840f3Copy full SHA for 52840f3
src/Models/Model.php
@@ -700,7 +700,7 @@ public function getParentDn(string $dn = null): ?string
700
*/
701
public function newDn(string $dn = null): DistinguishedName
702
{
703
- if (str_contains($dn, BaseBuilder::BASE_DN_PLACEHOLDER)) {
+ if (! is_null($dn) && str_contains($dn, BaseBuilder::BASE_DN_PLACEHOLDER)) {
704
$dn = $this->newQuery()->substituteBaseDn($dn);
705
}
706
0 commit comments