Skip to content

Commit

Permalink
Wrap with brackets ($this->attributes[$name] ?? null)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Dec 16, 2023
1 parent b2219f7 commit c802f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ protected function setAttributeInternal(string $name, mixed $value): void
{
if (
!empty($this->relationsDependencies[$name])
&& ($value === null || $value !== $this->attributes[$name] ?? null)
&& ($value === null || $value !== ($this->attributes[$name] ?? null))
) {
$this->resetDependentRelations($name);
}
Expand Down

0 comments on commit c802f0a

Please sign in to comment.