@@ -24,7 +24,7 @@ public function testSpiral(): void
2424 /** @var ContainerInterface $c */
2525 $ c = $ core ->getContainer ();
2626
27- ContainerScope::runScope ($ c , function (): void {
27+ ContainerScope::runScope ($ c , static function (): void {
2828 self ::assertSame (['key ' => 'value ' ], spiral (TestConfig::class)->toArray ());
2929 });
3030 }
@@ -41,7 +41,7 @@ public function testEnv(): void
4141 /** @var ContainerInterface $c */
4242 $ c = $ core ->getContainer ();
4343
44- ContainerScope::runScope ($ c , function (): void {
44+ ContainerScope::runScope ($ c , static function (): void {
4545 self ::assertTrue (env ('key ' ));
4646 });
4747 }
@@ -80,7 +80,7 @@ public function testSpiralException2(): void
8080 /** @var ContainerInterface $c */
8181 $ c = $ core ->getContainer ();
8282
83- ContainerScope::runScope ($ c , function (): void {
83+ ContainerScope::runScope ($ c , static function (): void {
8484 spiral (Invalid::class);
8585 });
8686 }
@@ -101,7 +101,7 @@ public function testDirectoryException(): void
101101
102102 private function assertDir ($ path , $ value ): void
103103 {
104- $ path = str_replace (['\\' , '// ' ], '/ ' , $ path );
105- self ::assertSame (rtrim ($ path , '/ ' ) . '/ ' , $ value );
104+ $ path = \ str_replace (['\\' , '// ' ], '/ ' , $ path );
105+ self ::assertSame (\ rtrim ($ path , '/ ' ) . '/ ' , $ value );
106106 }
107107}
0 commit comments