| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | protected function createOffer() |
||
| 36 | { |
||
| 37 | return (new OfferTour()) |
||
| 38 | ->setWorldRegion($this->faker->name) |
||
| 39 | ->setCountry($this->faker->name) |
||
| 40 | ->setRegion($this->faker->name) |
||
| 41 | ->setDays($this->faker->numberBetween(1, 9999)) |
||
| 42 | ->addDataTour($this->faker->date("Y-m-d\TH:i")) |
||
|
|
|||
| 43 | ->setName($this->faker->name) |
||
| 44 | ->setHotelStars($this->faker->name) |
||
| 45 | ->setRoom($this->faker->name) |
||
| 46 | ->setMeal($this->faker->name) |
||
| 47 | ->setIncluded($this->faker->name) |
||
| 48 | ->setTransport($this->faker->name) |
||
| 49 | ; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
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: