Skip to content

Commit a4ab06a

Browse files
remove is_null function
1 parent 74a68c3 commit a4ab06a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Eloquent/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ public function getSerializedKey()
812812
*/
813813
public function is($model)
814814
{
815-
return ! is_null($model) &&
815+
return $model !== null &&
816816
$this->getSerializedKey() === $model->getSerializedKey() &&
817817
$this->getTable() === $model->getTable() &&
818818
$this->getConnectionName() === $model->getConnectionName();

0 commit comments

Comments
 (0)