Skip to content

Commit 4bf6153

Browse files
authored
refactor: remove deprecated code scheduled for v3.2 removal (#7610)
1 parent 2f79c95 commit 4bf6153

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/Aop/ProxyTrait.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Hyperf\Context\ApplicationContext;
1717
use Hyperf\Di\Annotation\AnnotationCollector;
1818
use Hyperf\Di\Annotation\AspectCollector;
19-
use Hyperf\Di\ReflectionManager;
2019
use Hyperf\Stdlib\SplPriorityQueue;
2120

2221
trait ProxyTrait
@@ -33,30 +32,6 @@ protected static function __proxyCall(
3332
return $result;
3433
}
3534

36-
/**
37-
* @TODO This method will be called everytime, should optimize it later.
38-
* @deprecated v3.2
39-
*/
40-
protected static function __getParamsMap(string $className, string $method, array $args): array
41-
{
42-
$map = [
43-
'keys' => [],
44-
'order' => [],
45-
];
46-
$reflectParameters = ReflectionManager::reflectMethod($className, $method)->getParameters();
47-
$leftArgCount = count($args);
48-
foreach ($reflectParameters as $reflectionParameter) {
49-
$arg = $reflectionParameter->isVariadic() ? $args : array_shift($args);
50-
if (! isset($arg) && $leftArgCount <= 0) {
51-
$arg = $reflectionParameter->getDefaultValue();
52-
}
53-
--$leftArgCount;
54-
$map['keys'][$reflectionParameter->getName()] = $arg;
55-
$map['order'][] = $reflectionParameter->getName();
56-
}
57-
return $map;
58-
}
59-
6035
protected static function handleAround(ProceedingJoinPoint $proceedingJoinPoint)
6136
{
6237
$className = $proceedingJoinPoint->className;

0 commit comments

Comments
 (0)