Skip to content

Commit

Permalink
Rename: TodoByRule -> TodoByDateRule (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Dec 18, 2023
1 parent 5cabd21 commit 5909bfb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ parameters:

services:
-
class: staabm\PHPStanTodoBy\TodoByRule
class: staabm\PHPStanTodoBy\TodoByDateRule
tags: [phpstan.rules.rule]
arguments:
- %todo_by.nonIgnorable%
Expand Down
2 changes: 1 addition & 1 deletion src/TodoByRule.php → src/TodoByDateRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* @implements Rule<Node>
*/
final class TodoByRule implements Rule
final class TodoByDateRule implements Rule
{
private const PATTERN = <<<'REGEXP'
/
Expand Down
8 changes: 4 additions & 4 deletions tests/TodoByRuleTest.php → tests/TodoByDateRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

use PHPStan\Rules\Rule;
use PHPStan\Testing\RuleTestCase;
use staabm\PHPStanTodoBy\TodoByRule;
use staabm\PHPStanTodoBy\TodoByDateRule;

/**
* @extends RuleTestCase<TodoByRule>
* @extends RuleTestCase<TodoByDateRule>
*/
final class TodoByRuleTest extends RuleTestCase
final class TodoByDateRuleTest extends RuleTestCase
{
private string $referenceTime;
protected function getRule(): Rule
{
return new TodoByRule(true, $this->referenceTime);
return new TodoByDateRule(true, $this->referenceTime);
}

public function testRule(): void
Expand Down

0 comments on commit 5909bfb

Please sign in to comment.