Skip to content

Commit

Permalink
remove unused logic
Browse files Browse the repository at this point in the history
  • Loading branch information
shmax committed Sep 27, 2023
1 parent 74bb819 commit 4510109
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/Validations.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,12 +535,6 @@ public function validates_uniqueness_of($attrs): void
$connection = $this->klass->getMethod('connection')->invoke(null);

foreach ($attrs as $attr => $options) {
if (is_bool($options)) {
if (!$options) {
continue;
}
$options = [];
}
$pk = $this->model->get_primary_key();
$pk_value = $this->model->{$pk};

Expand Down

0 comments on commit 4510109

Please sign in to comment.