Skip to content

Commit

Permalink
Merge pull request #102 from muskie9/pull/trimDeprecation
Browse files Browse the repository at this point in the history
DEPRECATION trim(): Passing null to parameter
  • Loading branch information
muskie9 authored Oct 25, 2022
2 parents 7fd79bc + f865152 commit 8497158
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ORM/SalsifyIDExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ public function onBeforeWrite()
{
parent::onBeforeWrite();

$this->owner->SalsifyID = trim($this->owner->SalsifyID);
if ($this->owner->SalsifyID !== null) {
$this->owner->SalsifyID = trim($this->owner->SalsifyID);
}
}
}

0 comments on commit 8497158

Please sign in to comment.