Skip to content

Commit

Permalink
Merge pull request #456 from OndraM/feature/drop-php-5.5
Browse files Browse the repository at this point in the history
Drop PHP 5.5 support
  • Loading branch information
OndraM committed Aug 26, 2017
2 parents 1c5e7f0 + cb1f8bd commit 9482a3e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -3,7 +3,6 @@ sudo: false
dist: trusty

php:
- 5.5
- 5.6
- 7.0
- 7.1
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,8 @@
This project versioning adheres to [Semantic Versioning](http://semver.org/).

## Unreleased
### Changed
- Drop PHP 5.5 support, the minimal required version of PHP is now PHP 5.6.

## 1.4.1 - 2017-04-28
### Fixed
Expand Down
5 changes: 2 additions & 3 deletions lib/Support/Events/EventFiringWebDriver.php
Expand Up @@ -396,15 +396,14 @@ protected function newElement(WebDriverElement $element)

/**
* @param mixed $method
* @param mixed $arguments,...
*/
protected function dispatch($method)
protected function dispatch($method, ...$arguments)
{
if (!$this->dispatcher) {
return;
}

$arguments = func_get_args();
unset($arguments[0]);
$this->dispatcher->dispatch($method, $arguments);
}

Expand Down
5 changes: 2 additions & 3 deletions lib/Support/Events/EventFiringWebDriverNavigation.php
Expand Up @@ -149,15 +149,14 @@ public function to($url)

/**
* @param mixed $method
* @param mixed $arguments,...
*/
protected function dispatch($method)
protected function dispatch($method, ...$arguments)
{
if (!$this->dispatcher) {
return;
}

$arguments = func_get_args();
unset($arguments[0]);
$this->dispatcher->dispatch($method, $arguments);
}

Expand Down
6 changes: 3 additions & 3 deletions lib/Support/Events/EventFiringWebElement.php
Expand Up @@ -392,14 +392,14 @@ protected function dispatchOnException(WebDriverException $exception)

/**
* @param mixed $method
* @param mixed $arguments,...
*/
protected function dispatch($method)
protected function dispatch($method, ...$arguments)
{
if (!$this->dispatcher) {
return;
}
$arguments = func_get_args();
unset($arguments[0]);

$this->dispatcher->dispatch($method, $arguments);
}

Expand Down

0 comments on commit 9482a3e

Please sign in to comment.