Skip to content

Commit

Permalink
Merge pull request #1629 from solomon-ochepa/patch-2
Browse files Browse the repository at this point in the history
Update rule.stub
  • Loading branch information
dcblogdev authored Oct 22, 2023
2 parents dfdf7ac + 890a765 commit ab4121c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Commands/stubs/rule.stub
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class $CLASS$ implements Rule
{
/**
* Create a new rule instance.
*
* @return void
*/
public function __construct()
{
Expand All @@ -18,22 +16,16 @@ class $CLASS$ implements Rule

/**
* Determine if the validation rule passes.
*
* @param string $attribute
* @param mixed $value
* @return bool
*/
public function passes($attribute, $value)
public function passes(string $attribute, $value): bool
{
//
}

/**
* Get the validation error message.
*
* @return string
*/
public function message()
public function message(): string
{
return 'The validation error message.';
}
Expand Down

0 comments on commit ab4121c

Please sign in to comment.