| 1 | <?php |
||
| 18 | class App |
||
| 19 | { |
||
| 20 | use \Jaxon\Features\App; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Read config options from a config file and setup the library |
||
| 24 | * |
||
| 25 | * @param string $sConfigFile The full path to the config file |
||
| 26 | * |
||
| 27 | * @return Jaxon |
||
| 28 | */ |
||
| 29 | public function setup($sConfigFile) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Process an incoming Jaxon request, and return the response. |
||
| 61 | * |
||
| 62 | * @return void |
||
| 63 | */ |
||
| 64 | public function processRequest() |
||
| 68 | } |
||
| 69 |
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: