@@ -52,7 +52,7 @@ public function run(ServerRequestInterface $serverRequest): void {
5252 invariant (
5353 $router instanceof BaseRouter ,
5454 " %s class must extend %s" ,
55- get_class ($router ),
55+ \ get_class ($router ),
5656 BaseRouter :: class ,
5757 );
5858 list ($middleware , $attributes ) =
@@ -127,8 +127,8 @@ protected function middleware(): ImmVector<\Nazg\Types\TMiddlewareClass> {
127127 }
128128
129129 private function registerDependencies (mixed $config ): void {
130- if (is_array ($config )) {
131- if (array_key_exists (Service :: MODULES , $config )) {
130+ if (\ is_array ($config )) {
131+ if (\ array_key_exists (Service :: MODULES , $config )) {
132132 if ($this -> dependency instanceof \Nazg \Foundation \Dependency \ Dependency ) {
133133 $vModule = $config [Service :: MODULES ];
134134 if ($vModule instanceof ImmVector ) {
@@ -140,8 +140,8 @@ private function registerDependencies(mixed $config): void {
140140 }
141141
142142 private function registerMiddlewares (mixed $config ): void {
143- if (is_array ($config )) {
144- if (array_key_exists (Service :: MIDDLEWARES , $config )) {
143+ if (\ is_array ($config )) {
144+ if (\ array_key_exists (Service :: MIDDLEWARES , $config )) {
145145 if ($config [Service :: MIDDLEWARES ] instanceof ImmVector ) {
146146 $this -> im = $config [Service :: MIDDLEWARES ];
147147 }
0 commit comments