Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Fix docblock for \Illuminate\Validation\ClosureValidationRule::message() #52077

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

seriquynh
Copy link
Contributor

@seriquynh seriquynh commented Jul 10, 2024

\Illuminate\Validation\ClosureValidationRule::message() returns an array, not a string.

<?php

namespace Illuminate\Validation;

class ClosureValidationRule
{
   /**
     * The validation error messages.
     *
     * @var array
     */
    public $messages = [];

    /**
     * Get the validation error messages.
     *
     * @return array
     */
    public function message()
    {
        return $this->messages;
    }
}

@seriquynh seriquynh changed the title Fix docblock for \Illuminate\Validation\ClosureValidationRule::message() [11.x] Fix docblock for \Illuminate\Validation\ClosureValidationRule::message() Jul 10, 2024
@taylorotwell taylorotwell merged commit 3343f2b into laravel:11.x Jul 10, 2024
30 checks passed
@seriquynh seriquynh deleted the fix-docblock branch July 10, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants