Skip to content

Commit

Permalink
[BCB] Rename rules with typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 12, 2021
1 parent 1c34d8d commit 003ab1a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions conf/config.level4.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ rules:
- PHPStan\Rules\DeadCode\UnreachableStatementRule
- PHPStan\Rules\Exceptions\CatchWithUnthrownExceptionRule
- PHPStan\Rules\Exceptions\OverwrittenExitPointByFinallyRule
- PHPStan\Rules\Functions\CallToFunctionStamentWithoutSideEffectsRule
- PHPStan\Rules\Functions\CallToFunctionStatementWithoutSideEffectsRule
- PHPStan\Rules\Methods\CallToConstructorStatementWithoutSideEffectsRule
- PHPStan\Rules\Methods\CallToMethodStamentWithoutSideEffectsRule
- PHPStan\Rules\Methods\CallToStaticMethodStamentWithoutSideEffectsRule
- PHPStan\Rules\Methods\CallToMethodStatementWithoutSideEffectsRule
- PHPStan\Rules\Methods\CallToStaticMethodStatementWithoutSideEffectsRule
- PHPStan\Rules\Methods\NullsafeMethodCallRule
- PHPStan\Rules\Properties\NullsafePropertyFetchRule
- PHPStan\Rules\TooWideTypehints\TooWideArrowFunctionReturnTypehintRule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* @implements \PHPStan\Rules\Rule<\PhpParser\Node\Stmt\Expression>
*/
class CallToFunctionStamentWithoutSideEffectsRule implements Rule
class CallToFunctionStatementWithoutSideEffectsRule implements Rule
{

private \PHPStan\Reflection\ReflectionProvider $reflectionProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* @implements \PHPStan\Rules\Rule<\PhpParser\Node\Stmt\Expression>
*/
class CallToMethodStamentWithoutSideEffectsRule implements Rule
class CallToMethodStatementWithoutSideEffectsRule implements Rule
{

private \PHPStan\Rules\RuleLevelHelper $ruleLevelHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* @implements \PHPStan\Rules\Rule<\PhpParser\Node\Stmt\Expression>
*/
class CallToStaticMethodStamentWithoutSideEffectsRule implements Rule
class CallToStaticMethodStatementWithoutSideEffectsRule implements Rule
{

private \PHPStan\Rules\RuleLevelHelper $ruleLevelHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
use PHPStan\Testing\RuleTestCase;

/**
* @extends \PHPStan\Testing\RuleTestCase<CallToFunctionStamentWithoutSideEffectsRule>
* @extends \PHPStan\Testing\RuleTestCase<CallToFunctionStatementWithoutSideEffectsRule>
*/
class CallToFunctionStamentWithoutSideEffectsRuleTest extends RuleTestCase
class CallToFunctionStatementWithoutSideEffectsRuleTest extends RuleTestCase
{

protected function getRule(): Rule
{
return new CallToFunctionStamentWithoutSideEffectsRule($this->createReflectionProvider());
return new CallToFunctionStatementWithoutSideEffectsRule($this->createReflectionProvider());
}

public function testRule(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
use PHPStan\Testing\RuleTestCase;

/**
* @extends \PHPStan\Testing\RuleTestCase<CallToMethodStamentWithoutSideEffectsRule>
* @extends \PHPStan\Testing\RuleTestCase<CallToMethodStatementWithoutSideEffectsRule>
*/
class CallToMethodStamentWithoutSideEffectsRuleTest extends RuleTestCase
class CallToMethodStatementWithoutSideEffectsRuleTest extends RuleTestCase
{

protected function getRule(): Rule
{
return new CallToMethodStamentWithoutSideEffectsRule(new RuleLevelHelper($this->createReflectionProvider(), true, false, true, false));
return new CallToMethodStatementWithoutSideEffectsRule(new RuleLevelHelper($this->createReflectionProvider(), true, false, true, false));
}

public function testRule(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
use PHPStan\Testing\RuleTestCase;

/**
* @extends \PHPStan\Testing\RuleTestCase<CallToStaticMethodStamentWithoutSideEffectsRule>
* @extends \PHPStan\Testing\RuleTestCase<CallToStaticMethodStatementWithoutSideEffectsRule>
*/
class CallToStaticMethodStamentWithoutSideEffectsRuleTest extends RuleTestCase
class CallToStaticMethodStatementWithoutSideEffectsRuleTest extends RuleTestCase
{

protected function getRule(): Rule
{
$broker = $this->createReflectionProvider();
return new CallToStaticMethodStamentWithoutSideEffectsRule(
return new CallToStaticMethodStatementWithoutSideEffectsRule(
new RuleLevelHelper($broker, true, false, true, false),
$broker
);
Expand Down

0 comments on commit 003ab1a

Please sign in to comment.