Skip to content

Commit 340aed5

Browse files
committed
destruct typo
1 parent 665a58e commit 340aed5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

rules/CodingStyle/ValueObject/ObjectMagicMethods.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class ObjectMagicMethods
1717
MethodName::CLONE,
1818
MethodName::CONSTRUCT,
1919
'__debugInfo',
20-
MethodName::DESCTRUCT,
20+
MethodName::DESTRUCT,
2121
'__get',
2222
MethodName::INVOKE,
2323
'__isset',

rules/TypeDeclaration/Rector/ClassMethod/AddReturnTypeDeclarationBasedOnParentClassMethodRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function refactor(Node $node): ?Node
9393
$hasChanged = false;
9494

9595
foreach ($node->getMethods() as $classMethod) {
96-
if ($this->isNames($classMethod, [MethodName::CONSTRUCT, MethodName::DESCTRUCT])) {
96+
if ($this->isNames($classMethod, [MethodName::CONSTRUCT, MethodName::DESTRUCT])) {
9797
continue;
9898
}
9999

src/ValueObject/MethodName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class MethodName
2828
/**
2929
* @var string
3030
*/
31-
public const DESCTRUCT = '__destruct';
31+
public const DESTRUCT = '__destruct';
3232

3333
/**
3434
* @var string

0 commit comments

Comments
 (0)