/** * Checks if $a and $b represent the same object * * Used as a helper function, since there might be syntax errors when older * PHP versions try to parse this: (new Model())->isSameAs($b) * * @param \Model $a * @param \Model $b * * @return bool */ public static function equalModels(\Model $a, \Model $b) { return $a->isSameAs($b); }