Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in rule name: MethodVisibitiliyInInterfaceRule #2781

Merged
merged 1 commit into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion conf/config.level0.neon
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ rules:
- PHPStan\Rules\Methods\ExistingClassesInTypehintsRule
- PHPStan\Rules\Methods\FinalPrivateMethodRule
- PHPStan\Rules\Methods\MethodCallableRule
- PHPStan\Rules\Methods\MethodVisibitiliyInInterfaceRule
- PHPStan\Rules\Methods\MethodVisibilityInInterfaceRule
- PHPStan\Rules\Methods\MissingMethodImplementationRule
- PHPStan\Rules\Methods\MethodAttributesRule
- PHPStan\Rules\Methods\StaticMethodCallableRule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use function sprintf;

/** @implements Rule<InClassMethodNode> */
class MethodVisibitiliyInInterfaceRule implements Rule
class MethodVisibilityInInterfaceRule implements Rule
{

public function getNodeType(): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
use PHPStan\Rules\Rule;
use PHPStan\Testing\RuleTestCase;

/** @extends RuleTestCase<MethodVisibitiliyInInterfaceRule> */
class MethodVisibitiliyInInterfaceRuleTest extends RuleTestCase
/** @extends RuleTestCase<MethodVisibilityInInterfaceRule> */
class MethodVisibilityInInterfaceRuleTest extends RuleTestCase
{

protected function getRule(): Rule
{
return new MethodVisibitiliyInInterfaceRule();
return new MethodVisibilityInInterfaceRule();
}

public function testRule(): void
Expand Down