diff --git a/src/Client.php b/src/Client.php index 090e8401..3133fe68 100644 --- a/src/Client.php +++ b/src/Client.php @@ -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.'); } diff --git a/src/WebTestAssertionsTrait.php b/src/WebTestAssertionsTrait.php index ac876849..7382e136 100644 --- a/src/WebTestAssertionsTrait.php +++ b/src/WebTestAssertionsTrait.php @@ -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);