@@ -98,7 +98,7 @@ protected function describeRoute(Route $route, array $options = [])
9898 ['Scheme ' , $ route ->getSchemes () ? implode ('| ' , $ route ->getSchemes ()) : 'ANY ' ],
9999 ['Method ' , $ route ->getMethods () ? implode ('| ' , $ route ->getMethods ()) : 'ANY ' ],
100100 ['Requirements ' , $ route ->getRequirements () ? $ this ->formatRouterConfig ($ route ->getRequirements ()) : 'NO CUSTOM ' ],
101- ['Class ' , \get_class ( $ route) ],
101+ ['Class ' , $ route::class ],
102102 ['Defaults ' , $ this ->formatRouterConfig ($ defaults )],
103103 ['Options ' , $ this ->formatRouterConfig ($ route ->getOptions ())],
104104 ];
@@ -156,7 +156,7 @@ protected function describeContainerService(object $service, array $options = []
156156 $ options ['output ' ]->table (
157157 ['Service ID ' , 'Class ' ],
158158 [
159- [$ options ['id ' ] ?? '- ' , \get_class ( $ service) ],
159+ [$ options ['id ' ] ?? '- ' , $ service::class ],
160160 ]
161161 );
162162 }
@@ -244,7 +244,7 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
244244 $ alias = $ definition ;
245245 $ tableRows [] = array_merge ([$ styledServiceId , sprintf ('alias for "%s" ' , $ alias )], $ tagsCount ? array_fill (0 , $ tagsCount , '' ) : []);
246246 } 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 , '' ) : []);
248248 }
249249 }
250250
@@ -625,7 +625,7 @@ private function formatCallable(mixed $callable): string
625625 }
626626
627627 if (method_exists ($ callable , '__invoke ' )) {
628- return sprintf ('%s::__invoke() ' , \get_class ( $ callable) );
628+ return sprintf ('%s::__invoke() ' , $ callable::class );
629629 }
630630
631631 throw new \InvalidArgumentException ('Callable is not describable. ' );
0 commit comments