@@ -10,7 +10,7 @@ |
||
| 10 | 10 | class BootloaderR extends Bootloader |
| 11 | 11 | { |
| 12 | 12 | #[BindMethod] |
| 13 | - private function bind(): SampleClass|SampleClassInterface |
|
| 13 | + private function bind(): SampleClass | SampleClassInterface |
|
| 14 | 14 | { |
| 15 | 15 | return new SampleClass(); |
| 16 | 16 | } |
@@ -43,13 +43,13 @@ discard block |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | #[BindMethod] |
| 46 | - private function bindMethodC(): SampleClass2|string|int |
|
| 46 | + private function bindMethodC(): SampleClass2 | string | int |
|
| 47 | 47 | { |
| 48 | 48 | return new SampleClass2(); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | #[BindMethod] |
| 52 | - private function bindMethodD(): SampleClass|SampleClassInterface |
|
| 52 | + private function bindMethodD(): SampleClass | SampleClassInterface |
|
| 53 | 53 | { |
| 54 | 54 | return new SampleClass(); |
| 55 | 55 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | #[SampleMethod('sampleMethod')] |
| 70 | - private function sampleMethod(): SampleClass|string|int |
|
| 70 | + private function sampleMethod(): SampleClass | string | int |
|
| 71 | 71 | { |
| 72 | 72 | return new SampleClass(); |
| 73 | 73 | } |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | #[InjectorMethod(alias: SampleInjectableClass::class)] |
| 76 | 76 | protected function sampleInjector(): InjectorInterface |
| 77 | 77 | { |
| 78 | - return new class implements InjectorInterface { |
|
| 78 | + return new class implements InjectorInterface{ |
|
| 79 | 79 | public function createInjection(\ReflectionClass $class, ?string $context = null): object |
| 80 | 80 | { |
| 81 | 81 | return new SampleInjectableClass('foo'); |
@@ -75,7 +75,8 @@ |
||
| 75 | 75 | #[InjectorMethod(alias: SampleInjectableClass::class)] |
| 76 | 76 | protected function sampleInjector(): InjectorInterface |
| 77 | 77 | { |
| 78 | - return new class implements InjectorInterface { |
|
| 78 | + return new class implements InjectorInterface |
|
| 79 | + { |
|
| 79 | 80 | public function createInjection(\ReflectionClass $class, ?string $context = null): object |
| 80 | 81 | { |
| 81 | 82 | return new SampleInjectableClass('foo'); |
@@ -8,5 +8,5 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function __construct( |
| 10 | 10 | public string $name, |
| 11 | - ) {} |
|
| 11 | + ){} |
|
| 12 | 12 | } |
@@ -8,5 +8,6 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function __construct( |
| 10 | 10 | public string $name, |
| 11 | - ) {} |
|
| 11 | + ) { |
|
| 12 | +} |
|
| 12 | 13 | } |
@@ -4,4 +4,4 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Spiral\Tests\Boot\Fixtures; |
| 6 | 6 | |
| 7 | -interface SampleClassInterface {} |
|
| 7 | +interface SampleClassInterface{} |
|
@@ -4,4 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Spiral\Tests\Boot\Fixtures; |
| 6 | 6 | |
| 7 | -interface SampleClassInterface {} |
|
| 7 | +interface SampleClassInterface |
|
| 8 | +{ |
|
| 9 | +} |
|
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | class BootloaderM extends Bootloader |
| 11 | 11 | { |
| 12 | 12 | #[SingletonMethod] |
| 13 | - private function bind(): int|object |
|
| 13 | + private function bind(): int | object |
|
| 14 | 14 | { |
| 15 | 15 | return new SampleClass2(); |
| 16 | 16 | } |
@@ -4,4 +4,4 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Spiral\Tests\Boot\Fixtures; |
| 6 | 6 | |
| 7 | -class SampleClass2 {} |
|
| 7 | +class SampleClass2{} |
|
@@ -4,4 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Spiral\Tests\Boot\Fixtures; |
| 6 | 6 | |
| 7 | -class SampleClass2 {} |
|
| 7 | +class SampleClass2 |
|
| 8 | +{ |
|
| 9 | +} |
|
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | class BootloaderL extends Bootloader |
| 11 | 11 | { |
| 12 | 12 | #[BindMethod] |
| 13 | - private function bind(): int|string|object |
|
| 13 | + private function bind(): int | string | object |
|
| 14 | 14 | { |
| 15 | 15 | return new SampleClass2(); |
| 16 | 16 | } |
@@ -6,4 +6,4 @@ |
||
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | #[\Attribute(\Attribute::TARGET_METHOD)] |
| 9 | -final class SampleMethod extends \Spiral\Boot\Attribute\AbstractMethod {} |
|
| 9 | +final class SampleMethod extends \Spiral\Boot\Attribute\AbstractMethod{} |
|
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | )] |
| 16 | 16 | #[BindAlias('sample2')] |
| 17 | 17 | #[BindAlias('sample3')] |
| 18 | - private function bind(): SampleClass|SampleClassInterface |
|
| 18 | + private function bind(): SampleClass | SampleClassInterface |
|
| 19 | 19 | { |
| 20 | 20 | return new SampleClass(); |
| 21 | 21 | } |