Skip to content

Commit

Permalink
fixed class name clash
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyhood committed Feb 17, 2021
1 parent 67e63a2 commit ea004be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Rules/String.php → src/Rules/Stringy.php
Expand Up @@ -4,7 +4,7 @@

use Rakit\Validation\Rule;

class String extends Rule
class Stringy extends Rule
{

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Validator.php
Expand Up @@ -162,7 +162,7 @@ protected function registerBaseValidators()
'defaults' => new Rules\Defaults,
'default' => new Rules\Defaults, // alias of defaults
'nullable' => new Rules\Nullable,
'string' => new Rule\String,
'string' => new Rules\Stringy,
];

foreach ($baseValidator as $key => $validator) {
Expand Down
6 changes: 3 additions & 3 deletions tests/Rules/StringTest.php → tests/Rules/StringyTest.php
Expand Up @@ -2,16 +2,16 @@

namespace Rakit\Validation\Tests;

use Rakit\Validation\Rules\String;
use Rakit\Validation\Rules\Stringy;
use PHPUnit\Framework\TestCase;
use stdClass;

class StringTest extends TestCase
class StringyTest extends TestCase
{

public function setUp()
{
$this->rule = new String;
$this->rule = new Stringy;
}

public function testValids()
Expand Down

0 comments on commit ea004be

Please sign in to comment.