mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-02 09:20:52 +00:00
Merge pull request #313 from rectorphp/misspellings
Fix some misspellings
This commit is contained in:
commit
ec8cfc5852
|
@ -43,7 +43,7 @@ final class ConstructorPropertyTypesExtractor
|
|||
}
|
||||
|
||||
foreach ($classNode->stmts as $inClassNode) {
|
||||
if (! $this->isContructorMethodNode($inClassNode)) {
|
||||
if (! $this->isConstructorMethodNode($inClassNode)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ final class ConstructorPropertyTypesExtractor
|
|||
return $parametersWithTypes;
|
||||
}
|
||||
|
||||
private function isContructorMethodNode(Node $node): bool
|
||||
private function isConstructorMethodNode(Node $node): bool
|
||||
{
|
||||
if (! $node instanceof ClassMethod) {
|
||||
return false;
|
||||
|
|
|
@ -7,7 +7,7 @@ use PhpParser\NodeTraverser;
|
|||
use Rector\NodeVisitor\PropertyAddingNodeVisitor;
|
||||
|
||||
/**
|
||||
* Adds new properties to class and to contructor
|
||||
* Adds new properties to class and to constructor
|
||||
*/
|
||||
final class PropertyAdder
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user