Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

make sure it passes #2408

Merged
merged 1 commit into from
Oct 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace Symplify\CodingStandard\Tests\Issues\Fixture;

use Rector\MagicDisclosure\Rector\Isset_\UnsetAndIssetToMethodCallRector;
use Rector\MagicDisclosure\ValueObject\IssetUnsetToMethodCall;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use function Rector\SymfonyPhpConfig\inline_value_objects;

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();

$services->set(UnsetAndIssetToMethodCallRector::class)
->call('configure', [[
UnsetAndIssetToMethodCallRector::ISSET_UNSET_TO_METHOD_CALL => inline_value_objects([
new IssetUnsetToMethodCall('SomeContainer', 'hasService', 'removeService'),
]),
]]);
};
1 change: 1 addition & 0 deletions packages/coding-standard/tests/Issues/InlineArrayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down