Skip to content

Commit

Permalink
Merge pull request #517 from ghost/master
Browse files Browse the repository at this point in the history
Update for PHP 7 Array to string Exception
  • Loading branch information
jpfuentes2 committed Apr 22, 2016
2 parents 5f211a3 + 8c907fe commit 2ecd1d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Validations.php
Expand Up @@ -572,7 +572,7 @@ public function validates_uniqueness_of($attrs)
{
$options = array_merge($configuration, $attr);
$pk = $this->model->get_primary_key();
$pk_value = $this->model->$pk[0];
$pk_value = $this->model->{$pk[0]};

if (is_array($options[0]))
{
Expand Down Expand Up @@ -908,4 +908,4 @@ public function getIterator()
{
return new ArrayIterator($this->full_messages());
}
}
}

0 comments on commit 2ecd1d8

Please sign in to comment.