10000 [TypeInfo] end/current instead of array_pop · symfony/symfony@b4129bf · GitHub
[go: up one dir, main page]

Skip to content

Commit b4129bf

Browse files
committed
[TypeInfo] end/current instead of array_pop
1 parent c168c2c commit b4129bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/TypeInfo/TypeContext/TypeContextFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public function createFromClassName(string $calledClassName, ?string $declaringC
5353
$declaringClassReflection = (self::$reflectionClassCache[$declaringClassName] ??= new \ReflectionClass($declaringClassName));
5454

5555
$typeContext = new TypeContext(
56-
array_pop($calledClassPath),
57-
array_pop($declaringClassPath),
56+
end($calledClassPath),
57+
end($declaringClassPath),
5858
trim($declaringClassReflection->getNamespaceName(), '\\'),
5959
$this->collectUses($declaringClassReflection),
6060
);

0 commit comments

Comments
 (0)
0