| 1 | <?php |
||
| 23 | trait QueueTrait |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Insert add note to message queue. |
||
| 27 | * |
||
| 28 | * @param Note $note |
||
| 29 | * |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | 2 | public function queueAdd(Note $note) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Insert update note to message queue. |
||
| 39 | * |
||
| 40 | * @param Note $note |
||
| 41 | * |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | 1 | public function queueUpdate(Note $note) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * Insert delete note to message queue. |
||
| 56 | * |
||
| 57 | * @param Note $note |
||
| 58 | * |
||
| 59 | * @return void |
||
| 60 | */ |
||
| 61 | 1 | public function queueDelete(Note $note) |
|
| 65 | } |
||
| 66 |
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: