Skip to content

Commit

Permalink
CS remove unnecessary docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed Jun 26, 2024
1 parent 4d2caa0 commit cd892f9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Turbo/src/Bridge/Mercure/Broadcaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,13 @@ final class Broadcaster implements BroadcasterInterface
*/
public const TOPIC_PATTERN = 'https://symfony.com/ux-turbo/%s/%s';

/**
* @var ExpressionLanguage|null
*/
private $expressionLanguage;
private ?ExpressionLanguage $expressionLanguage;

public function __construct(
private string $name,
private HubInterface $hub,
) {
if (class_exists(ExpressionLanguage::class)) {
$this->expressionLanguage = new ExpressionLanguage();
}
$this->expressionLanguage = class_exists(ExpressionLanguage::class) ? new ExpressionLanguage() : null;
}

public function broadcast(object $entity, string $action, array $options): void
Expand Down

0 comments on commit cd892f9

Please sign in to comment.