Skip to content

Commit

Permalink
fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 11, 2024
1 parent 02caa90 commit e840144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Validation/Concerns/ValidatesAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public function validateBoolean($attribute, $value)
*/
public function validateConfirmed($attribute, $value, $parameters)
{
return $this->validateSame($attribute, $value, [$parameters[0] ?: $attribute.'_confirmation']);
return $this->validateSame($attribute, $value, [$parameters[0] ?? $attribute.'_confirmation']);
}

/**
Expand Down

0 comments on commit e840144

Please sign in to comment.