Skip to content

Commit

Permalink
BC breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Oct 30, 2021
1 parent ad6a7f9 commit 8d968f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ public function setServerParameter($key, $value): void
throw new \InvalidArgumentException('Server parameters cannot be set when using WebDriver.');
}

public function getServerParameter($key, $default = '')
/**
* @return mixed
*/
public function getServerParameter($key, $default = ''): mixed
{
throw new \InvalidArgumentException('Server parameters cannot be retrieved when using WebDriver.');
}
Expand Down
4 changes: 2 additions & 2 deletions src/WebTestAssertionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ private static function findElement(string $locator): WebDriverElement
* @param array $options An array of options to pass to the createKernel method
* @param array $server An array of server parameters
*
* @return AbstractBrowser A browser instance
* @return KernelBrowser A browser instance
*/
protected static function createClient(array $options = [], array $server = []): AbstractBrowser
protected static function createClient(array $options = [], array $server = []): KernelBrowser
{
$kernel = static::bootKernel($options);

Expand Down

0 comments on commit 8d968f8

Please sign in to comment.