File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- function getReflectionMethod (ReflectionClass $ reflected ): ReflectionMethod {
3
+ function vsCodeGetReflectionMethod (ReflectionClass $ reflected ): ReflectionMethod {
4
4
return match (true ) {
5
5
$ reflected ->hasMethod ('__invoke ' ) => $ reflected ->getMethod ('__invoke ' ),
6
6
default => $ reflected ->getMethod ('handle ' ),
@@ -29,7 +29,7 @@ function getReflectionMethod(ReflectionClass $reflected): ReflectionMethod {
29
29
}
30
30
31
31
$ reflected = new ReflectionClass ($ m );
32
- $ reflectedMethod = getReflectionMethod ($ reflected );
32
+ $ reflectedMethod = vsCodeGetReflectionMethod ($ reflected );
33
33
34
34
return [
35
35
"class " => $ m ,
@@ -45,7 +45,7 @@ function getReflectionMethod(ReflectionClass $reflected): ReflectionMethod {
45
45
}
46
46
47
47
$ reflected = new ReflectionClass ($ middleware );
48
- $ reflectedMethod = getReflectionMethod ($ reflected );
48
+ $ reflectedMethod = vsCodeGetReflectionMethod ($ reflected );
49
49
50
50
$ result = array_merge ($ result , [
51
51
"class " => $ middleware ,
Original file line number Diff line number Diff line change 1
1
// This file was generated from php-templates/middleware.php, do not edit directly
2
2
export default `
3
- function getReflectionMethod (ReflectionClass $reflected): ReflectionMethod {
3
+ function vsCodeGetReflectionMethod (ReflectionClass $reflected): ReflectionMethod {
4
4
return match (true) {
5
5
$reflected->hasMethod('__invoke') => $reflected->getMethod('__invoke'),
6
6
default => $reflected->getMethod('handle'),
@@ -29,7 +29,7 @@ echo collect(app("Illuminate\\Contracts\\Http\\Kernel")->getMiddlewareGroups())
29
29
}
30
30
31
31
$reflected = new ReflectionClass($m);
32
- $reflectedMethod = getReflectionMethod ($reflected);
32
+ $reflectedMethod = vsCodeGetReflectionMethod ($reflected);
33
33
34
34
return [
35
35
"class" => $m,
@@ -45,7 +45,7 @@ echo collect(app("Illuminate\\Contracts\\Http\\Kernel")->getMiddlewareGroups())
45
45
}
46
46
47
47
$reflected = new ReflectionClass($middleware);
48
- $reflectedMethod = getReflectionMethod ($reflected);
48
+ $reflectedMethod = vsCodeGetReflectionMethod ($reflected);
49
49
50
50
$result = array_merge($result, [
51
51
"class" => $middleware,
You can’t perform that action at this time.
0 commit comments