Skip to content

Commit fdccf46

Browse files
committed
AC-15170:Add official support for Symfony 7.4 LTS in Adobe Commerce 2.4.9
1 parent a1dc402 commit fdccf46

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Analyzer/ClassMethodAnalyzer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ private function addAncestorsToArray(array $ancestors, $toAdd)
541541
private function analyzeRemainingConstructorParams($contextAfter, $methodAfter, $remainingAfter)
542542
{
543543
if (Signature::isOptionalParams($remainingAfter)) {
544-
$namespace = implode('\\', $contextAfter->jsonSerialize()['namespacedName']->parts);
544+
$namespace = $contextAfter->namespacedName->toString();
545545
if (in_array($namespace, $this->extendableApiClassList)) {
546546
$data = new ExtendableClassConstructorOptionalParameterAdded(
547547
$this->context,

src/Helper/ClassParser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ public function getParentFullClassName()
8484
$nodeTree = $this->getNamespaceNode();
8585
foreach ($nodeTree->stmts as $stmt) {
8686
if ($stmt instanceof Class_ && $stmt->extends !== null) {
87-
if (count($stmt->extends->parts) > 1) {
88-
return implode("\\", $stmt->extends->parts);
87+
if (count($stmt->extends->getParts()) > 1) {
88+
return $stmt->extends->toString();
8989
}
90-
$extendedClass = end($stmt->extends->parts);
90+
$extendedClass = $stmt->extends->getLast();
9191
}
9292
}
9393

@@ -97,7 +97,7 @@ public function getParentFullClassName()
9797

9898
foreach ($nodeTree->stmts as $stmt) {
9999
if ($stmt instanceof Use_ && $stmt->uses[0]->getAlias()->toString() === $extendedClass) {
100-
return implode("\\", $stmt->uses[0]->name->parts);
100+
return $stmt->uses[0]->name->toString();
101101
}
102102
}
103103

0 commit comments

Comments
 (0)