diff --git a/packages/coding-standard/tests/Issues/Fixture/skip_already_inlined.php.inc b/packages/coding-standard/tests/Issues/Fixture/skip_already_inlined.php.inc new file mode 100644 index 0000000000..bd56705166 --- /dev/null +++ b/packages/coding-standard/tests/Issues/Fixture/skip_already_inlined.php.inc @@ -0,0 +1,19 @@ +services(); + + $services->set(UnsetAndIssetToMethodCallRector::class) + ->call('configure', [[ + UnsetAndIssetToMethodCallRector::ISSET_UNSET_TO_METHOD_CALL => inline_value_objects([ + new IssetUnsetToMethodCall('SomeContainer', 'hasService', 'removeService'), + ]), + ]]); +}; diff --git a/packages/coding-standard/tests/Issues/InlineArrayTest.php b/packages/coding-standard/tests/Issues/InlineArrayTest.php index baf2dd3222..fb4658ec77 100644 --- a/packages/coding-standard/tests/Issues/InlineArrayTest.php +++ b/packages/coding-standard/tests/Issues/InlineArrayTest.php @@ -21,6 +21,7 @@ public function test(SmartFileInfo $fileInfo): void public function provideData(): Iterator { yield [new SmartFileInfo(__DIR__ . '/Fixture/inline_array.php.inc')]; + yield [new SmartFileInfo(__DIR__ . '/Fixture/skip_already_inlined.php.inc')]; } protected function provideConfig(): string