Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Rules/String.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Rakit\Validation\Rule;

class Alpha extends Rule
class String extends Rule

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In PHP, case is often not important, so "String" cannot be used for the class name. It would be possible to write "StringRule", but this is not customary inside the library. I suggest renaming the class to "Text" and renaming the rule to "text". Maybe something doesn't sound right, I used a translator.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Chamber6821.

That will teach me for doing too many things at once, late at night 😛

{

/** @var string */
Expand Down