Skip to content

[Mercure] Remove wrong parameter in MockHub #15782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2021

Conversation

elliotbruneel
Copy link
Contributor

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

    /**
     * @param (callable(Update): string) $publisher
     */
    public function __construct(
        string $url,
        TokenProviderInterface $jwtProvider,
        callable $publisher,
        TokenFactoryInterface $jwtFactory = null,
        string $publicUrl = null
    )

@elliotbruneel elliotbruneel changed the title Remove wrong parameter in MockHub [Mercure] Remove wrong parameter in MockHub Sep 8, 2021
@carsonbot carsonbot changed the title [Mercure] Remove wrong parameter in MockHub Remove wrong parameter in MockHub Sep 16, 2021
@carsonbot carsonbot changed the title Remove wrong parameter in MockHub [Mercure] Remove wrong parameter in MockHub Sep 17, 2021
@javiereguiluz javiereguiluz added this to the 4.4 milestone Sep 17, 2021
@javiereguiluz javiereguiluz changed the base branch from 5.3 to 4.4 September 17, 2021 08:23
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
    )
```
@javiereguiluz
Copy link
Member

Good catch, thanks Elliot.

@javiereguiluz javiereguiluz merged commit d361e20 into symfony:4.4 Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants