Skip to content

Commit 17817e9

Browse files
nikophilkbond
authored andcommitted
bot: fix cs [skip ci]
1 parent 7c95122 commit 17817e9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Persistence/ProxyGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static function wrap(object $object): Proxy
5757
*/
5858
public static function wrapFactory(PersistentProxyObjectFactory $factory, callable|array $attributes): Proxy
5959
{
60-
return self::generateClassFor($factory)::createLazyProxy(static function () use ($factory, $attributes) { // @phpstan-ignore staticMethod.notFound
60+
return self::generateClassFor($factory)::createLazyProxy(static function() use ($factory, $attributes) { // @phpstan-ignore staticMethod.notFound
6161
if (Configuration::instance()->inADataProvider() && $factory->isPersisting()) {
6262
throw new \LogicException('Cannot access to a persisted object from a data provider.');
6363
}

tests/Integration/DataProvider/DataProviderWithPersistentFactoryInKernelTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static function useGetterOnProxyObjectCreatedInDataProvider(): iterable
111111

112112
#[Test]
113113
#[DataProvider('throwsExceptionWhenCreatingObjectInDataProvider')]
114-
public function it_throws_when_creating_persisted_object_with_non_proxy_factory_in_data_provider(?\Throwable $e
114+
public function it_throws_when_creating_persisted_object_with_non_proxy_factory_in_data_provider(?\Throwable $e,
115115
): void {
116116
self::assertInstanceOf(\LogicException::class, $e);
117117
self::assertStringStartsWith(
@@ -134,7 +134,7 @@ public static function throwsExceptionWhenCreatingObjectInDataProvider(): iterab
134134
#[DataProvider('useGetterOnObjectCreatedInDataProvider')]
135135
public function assert_it_can_use_getter_on_non_persisted_object_created_in_data_provider(
136136
string $providedData,
137-
mixed $expectedData
137+
mixed $expectedData,
138138
): void {
139139
self::assertEquals($expectedData, unproxy($providedData));
140140
}
@@ -145,12 +145,12 @@ public static function useGetterOnObjectCreatedInDataProvider(): iterable
145145
yield 'persistent factory' => [static::factory()::new()->withoutPersisting()->create()->getProp1(), 'default1'];
146146
yield 'persistent factory using many' => [
147147
static::factory()::new()->withoutPersisting()->many(1)->create()[0]->getProp1(),
148-
'default1'
148+
'default1',
149149
];
150150
yield 'proxy factory' => [static::proxyFactory()::new()->withoutPersisting()->create()->getProp1(), 'default1'];
151151
yield 'proxy factory using many' => [
152152
static::proxyFactory()::new()->withoutPersisting()->many(1)->create()[0]->getProp1(),
153-
'default1'
153+
'default1',
154154
];
155155
}
156156

0 commit comments

Comments
 (0)