Skip to content

Commit

Permalink
Changing if statement in isDirty to mimic HasAttributes logic, per @d…
Browse files Browse the repository at this point in the history
…averdalas feedback
  • Loading branch information
EricTendian committed Oct 19, 2017
1 parent 5c4415f commit eba3319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hookable.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function save(array $options = [])
*/
public function isDirty($attributes = null)
{
if (! is_array($attributes) && !is_null($attributes)) {
if (! is_array($attributes)) {
$attributes = func_get_args();
}

Expand Down

0 comments on commit eba3319

Please sign in to comment.