Skip to content

Commit eecd5c8

Browse files
committed
note
1 parent 40d4f09 commit eecd5c8

File tree

2 files changed

+4
-23
lines changed

2 files changed

+4
-23
lines changed

rules/Php70/Rector/ClassMethod/Php4ConstructorRector.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ public function refactor(Node $node): Class_|null
9797
return null;
9898
}
9999

100-
<<<<<<< HEAD
101100
$className = $this->getName($node);
102101
if (! is_string($className)) {
103102
return null;
@@ -106,28 +105,6 @@ public function refactor(Node $node): Class_|null
106105
foreach ($node->stmts as $classStmtKey => $classStmt) {
107106
if (! $classStmt instanceof ClassMethod) {
108107
continue;
109-
=======
110-
// process parent call references first
111-
$this->processClassMethodStatementsForParentConstructorCalls($psr4ConstructorMethod, $scope);
112-
113-
// does it already have a "__construct" method?
114-
if (! $node->getMethod(MethodName::CONSTRUCT) instanceof ClassMethod) {
115-
$psr4ConstructorMethod->name = new Identifier(MethodName::CONSTRUCT);
116-
}
117-
118-
$classMethodStmts = $psr4ConstructorMethod->stmts;
119-
if ($classMethodStmts === null) {
120-
return null;
121-
}
122-
123-
$parentClassName = $classReflection->getParentClass() instanceof ClassReflection
124-
? $classReflection->getParentClass()
125-
->getName() : '';
126-
127-
foreach ($classMethodStmts as $classMethodStmt) {
128-
if (! $classMethodStmt instanceof Expression) {
129-
return null;
130-
>>>>>>> ea2ce07c12 (fixup! fixup! fixup! fixup! [stmts-aware] kick of custom node parser to use StmtsAwareNode)
131108
}
132109

133110
if (! $this->php4ConstructorClassMethodAnalyzer->detect($classStmt, $classReflection)) {

src/NodeTypeResolver/Node/AttributeKey.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,12 @@ final class AttributeKey
162162
public const IS_BYREF_RETURN = 'is_byref_return';
163163

164164
/**
165+
<<<<<<< HEAD
165166
* @deprecated This value can change, as based on default input keys. Use existing array keys instead.
166167
*
168+
=======
169+
* @deprecated use keys directly from stmts iteration as convention
170+
>>>>>>> c23994b233 (note)
167171
* @var string
168172
*/
169173
public const STMT_KEY = 'stmt_key';

0 commit comments

Comments
 (0)