Skip to content

Commit 366baef

Browse files
committed
Fix linters
1 parent 0535c17 commit 366baef

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Bridge/Doctrine/EventListener/PublishMercureUpdatesListener.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ private function storeEntityToPublish($entity, string $property): void
185185

186186
/**
187187
* @param object $entity
188-
* @param array
189188
*/
190189
private function publishUpdate($entity, array $options): void
191190
{
@@ -207,8 +206,11 @@ private function publishUpdate($entity, array $options): void
207206
if (method_exists(Update::class, 'isPrivate')) {
208207
$update = new Update($iri, $data, $options['private'] ?? false, $options['id'] ?? null, $options['type'] ?? null, $options['retry'] ?? null);
209208
} else {
210-
// Mercure Component < 0.4
211-
// @phpstan-ignore-next-line
209+
/**
210+
* Mercure Component < 0.4.
211+
*
212+
* @phpstan-ignore-next-line
213+
*/
212214
$update = new Update($iri, $data, $options);
213215
}
214216
$this->messageBus ? $this->dispatch($update) : ($this->publisher)($update);

tests/Bridge/Doctrine/EventListener/PublishMercureUpdatesListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function testLegacyPublishUpdate(): void
8888
$targets = [];
8989
$publisher = function (Update $update) use (&$topics, &$targets): string {
9090
$topics = array_merge($topics, $update->getTopics());
91-
$targets[] = $update->getTargets();
91+
$targets[] = $update->getTargets(); // @phpstan-ignore-line
9292

9393
return 'id';
9494
};

0 commit comments

Comments
 (0)