| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | function test_sync_changes() { |
||
| 24 | // Test change to Functions::get_modules(). |
||
| 25 | error_log( 'get_modules returns: ' . print_r( Automattic\Jetpack\Sync\Functions::get_modules(), true ) ); |
||
| 26 | |||
| 27 | // Test change to Listener::get_actor(). The returned array should include the actor's ip. |
||
| 28 | error_log( 'get_actor returns ' . print_r( Automattic\Jetpack\Sync\Listener::get_instance()->get_actor( 'jetpack_wp_login', null ), true ) ); |
||
|
|
|||
| 29 | |||
| 30 | // Test change to Options::jetpack_sync_core_icon(). |
||
| 31 | error_log( 'calling jetpack_sync_core_icon' ); |
||
| 32 | ( new Automattic\Jetpack\Sync\Modules\Options() )->jetpack_sync_core_icon(); |
||
| 33 | } |
||
| 34 | |||
| 36 |
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: