Merge pull request #313 from rectorphp/misspellings

Fix some misspellings
This commit is contained in:
Tomáš Votruba 2018-02-06 11:10:39 +01:00 committed by GitHub
commit ec8cfc5852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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
{