Commit d361e20
committed
minor #15782 [Mercure] Remove wrong parameter in MockHub (elliotbruneel)
This PR was submitted for the 5.3 branch but it was merged into the 4.4 branch instead.
Discussion
----------
[Mercure] Remove wrong parameter in MockHub
There is no parameter in `MockHub` to specify the hub name (`default`)
`MockHub` constructor : https://github.com/symfony/mercure/blob/main/src/MockHub.php#L30-L35
```php
/**
* `@param` (callable(Update): string) $publisher
*/
public function __construct(
string $url,
TokenProviderInterface $jwtProvider,
callable $publisher,
TokenFactoryInterface $jwtFactory = null,
string $publicUrl = null
)
```
<!--
If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).
If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `5.x` for features of unreleased versions).
-->
Commits
-------
28cbc5d Remove wrong parameter in MockHub1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
| 579 | + | |
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| |||
0 commit comments