Skip to content

Commit

Permalink
Merge pull request #42 from Laragear/fix/bindable-callback-macro
Browse files Browse the repository at this point in the history
[3.x] Fixes bindable callbacks macros.
  • Loading branch information
DarkGhostHunter authored Jul 4, 2024
2 parents 5b907c3 + 8b98b18 commit 56d5dd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/RutServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,28 +111,28 @@ protected function macroRules(): void
{
Rule::macro(
'rutExists',
static function (Model|string $table, $numColumn = 'NULL', $rutColumn = 'NULL'): Rules\RutExists {
function (Model|string $table, $numColumn = 'NULL', $rutColumn = 'NULL'): Rules\RutExists {
return new Rules\RutExists($table, $numColumn, $rutColumn);
}
);

Rule::macro(
'rutUnique',
static function (Model|string $table, $numColumn = 'NULL', $rutColumn = 'NULL'): Rules\RutUnique {
function (Model|string $table, $numColumn = 'NULL', $rutColumn = 'NULL'): Rules\RutUnique {
return new Rules\RutUnique($table, $numColumn, $rutColumn);
}
);

Rule::macro(
'numExists',
static function (Model|string $table, $column = 'NULL'): Rules\NumExists {
function (Model|string $table, $column = 'NULL'): Rules\NumExists {
return new Rules\NumExists($table, $column);
}
);

Rule::macro(
'numUnique',
static function (Model|string $table, $column = 'NULL'): Rules\NumUnique {
function (Model|string $table, $column = 'NULL'): Rules\NumUnique {
return new Rules\NumUnique($table, $column);
}
);
Expand Down

0 comments on commit 56d5dd0

Please sign in to comment.