Skip to content

Commit

Permalink
remove is_null function
Browse files Browse the repository at this point in the history
  • Loading branch information
florianJacques committed Jul 1, 2024
1 parent 74a68c3 commit a4ab06a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ public function getSerializedKey()
*/
public function is($model)
{
return ! is_null($model) &&
return $model !== null &&
$this->getSerializedKey() === $model->getSerializedKey() &&
$this->getTable() === $model->getTable() &&
$this->getConnectionName() === $model->getConnectionName();
Expand Down

0 comments on commit a4ab06a

Please sign in to comment.