File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/Turbo/src/Bridge/Mercure Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -40,18 +40,13 @@ final class Broadcaster implements BroadcasterInterface
40
40
*/
41
41
public const TOPIC_PATTERN = 'https://symfony.com/ux-turbo/%s/%s ' ;
42
42
43
- /**
44
- * @var ExpressionLanguage|null
45
- */
46
- private $ expressionLanguage ;
43
+ private ?ExpressionLanguage $ expressionLanguage ;
47
44
48
45
public function __construct (
49
46
private string $ name ,
50
47
private HubInterface $ hub ,
51
48
) {
52
- if (class_exists (ExpressionLanguage::class)) {
53
- $ this ->expressionLanguage = new ExpressionLanguage ();
54
- }
49
+ $ this ->expressionLanguage = class_exists (ExpressionLanguage::class) ? new ExpressionLanguage () : null ;
55
50
}
56
51
57
52
public function broadcast (object $ entity , string $ action , array $ options ): void
You can’t perform that action at this time.
0 commit comments