![]() ![]() The thing I'm puzzled about is that the IDE inspection complains that I should add the JetBrains\PhpStorm\Pure attribute to the rules() method, but not the messages() method. Protected function getPhoneNumberMessage(): string $/", "max:16"] "phone_number.regex" => $this->getPhoneNumberMessage(), Two methods, both of which return a simple array that's partially populated by a method, but the IDE treats them differently. I've got a very simple FormRequest class in a Laravel project. ![]()
0 Comments
Leave a Reply. |