Skip to content

Commit

Permalink
Merge pull request #18 from EricTendian/5.5
Browse files Browse the repository at this point in the history
Changing logic of isDirty to match with Laravel 5.5 and prevent from always returning false
  • Loading branch information
jarektkaczyk committed Nov 17, 2017
2 parents 72be946 + eba3319 commit 7eb58b5
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 7eb58b5

Please sign in to comment.