| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function __construct(WebDriver $driver, $source, $x_offset, $y_offset) |
||
| 19 | { |
||
| 20 | parent::__construct($driver); |
||
|
|
|||
| 21 | $this->action->addAction( |
||
| 22 | new WebDriverClickAndHoldAction($this->mouse, $source) |
||
| 23 | ); |
||
| 24 | $this->action->addAction( |
||
| 25 | new WaitAction(1) |
||
| 26 | ); |
||
| 27 | $this->action->addAction( |
||
| 28 | new WebDriverMoveToOffsetAction($this->mouse, null, $x_offset, $y_offset) |
||
| 29 | ); |
||
| 30 | $this->action->addAction( |
||
| 31 | new WaitAction(1) |
||
| 32 | ); |
||
| 33 | $this->action->addAction( |
||
| 34 | new WebDriverButtonReleaseAction($this->mouse, null) |
||
| 35 | ); |
||
| 36 | $this->action->addAction( |
||
| 37 | new WaitAction(1) |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: