| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | static function init() { |
||
| 7 | Capabilities::build( 'jetpack.recurring-payments.enabled' ) |
||
| 8 | ->require_jetpack_is_active() |
||
| 9 | ->require_any( function( $builder ) { |
||
|
|
|||
| 10 | $builder |
||
| 11 | ->require_jetpack_plan_supports( 'recurring-payments' ) |
||
| 12 | ->require_filter( 'jetpack_block_editor_enable_upgrade_nudge', true ); |
||
| 13 | } ); |
||
| 14 | } |
||
| 15 | } |
||
| 17 | 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: