Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | static function init() { |
||
14 | |||
15 | // a legacy capability. |
||
16 | self::build( 'jetpack_activate_modules' ) |
||
17 | ->require_wp_capability( 'manage_options' ); |
||
18 | |||
19 | self::build( 'jetpack.recurring-payments.enabled' ) |
||
20 | ->require_jetpack_is_active() |
||
21 | ->require_any( function( $builder ) { |
||
|
|||
22 | $builder |
||
23 | ->require_jetpack_plan_supports( 'recurring-payments' ) |
||
24 | ->require_filter( 'jetpack_block_editor_enable_upgrade_nudge', true ); |
||
25 | } ); |
||
26 | } |
||
27 | |||
36 | add_action( 'init', [ 'Jetpack_Capabilities', 'init' ] ); |
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: