@@ -98,7 +98,7 @@ protected function describeRoute(Route $route, array $options = [])
98
98
['Scheme ' , $ route ->getSchemes () ? implode ('| ' , $ route ->getSchemes ()) : 'ANY ' ],
99
99
['Method ' , $ route ->getMethods () ? implode ('| ' , $ route ->getMethods ()) : 'ANY ' ],
100
100
['Requirements ' , $ route ->getRequirements () ? $ this ->formatRouterConfig ($ route ->getRequirements ()) : 'NO CUSTOM ' ],
101
- ['Class ' , \get_class ( $ route) ],
101
+ ['Class ' , $ route::class ],
102
102
['Defaults ' , $ this ->formatRouterConfig ($ defaults )],
103
103
['Options ' , $ this ->formatRouterConfig ($ route ->getOptions ())],
104
104
];
@@ -156,7 +156,7 @@ protected function describeContainerService(object $service, array $options = []
156
156
$ options ['output ' ]->table (
157
157
['Service ID ' , 'Class ' ],
158
158
[
159
- [$ options ['id ' ] ?? '- ' , \get_class ( $ service) ],
159
+ [$ options ['id ' ] ?? '- ' , $ service::class ],
160
160
]
161
161
);
162
162
}
@@ -244,7 +244,7 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
244
244
$ alias = $ definition ;
245
245
$ tableRows [] = array_merge ([$ styledServiceId , sprintf ('alias for "%s" ' , $ alias )], $ tagsCount ? array_fill (0 , $ tagsCount , '' ) : []);
246
246
} else {
247
- $ tableRows [] = array_merge ([$ styledServiceId , \get_class ( $ definition) ], $ tagsCount ? array_fill (0 , $ tagsCount , '' ) : []);
247
+ $ tableRows [] = array_merge ([$ styledServiceId , $ definition::class ], $ tagsCount ? array_fill (0 , $ tagsCount , '' ) : []);
248
248
}
249
249
}
250
250
@@ -625,7 +625,7 @@ private function formatCallable(mixed $callable): string
625
625
}
626
626
627
627
if (method_exists ($ callable , '__invoke ' )) {
628
- return sprintf ('%s::__invoke() ' , \get_class ( $ callable) );
628
+ return sprintf ('%s::__invoke() ' , $ callable::class );
629
629
}
630
630
631
631
throw new \InvalidArgumentException ('Callable is not describable. ' );
0 commit comments