Automattic /
jetpack
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | use \Automattic\Jetpack\Capabilities; |
||
| 4 | |||
| 5 | class Jetpack_Capabilities { |
||
| 6 | static function init() { |
||
| 7 | Capabilities::build( 'jetpack.recurring-payments.enabled' ) |
||
| 8 | ->require_jetpack_is_active() |
||
| 9 | ->require_any( function( $builder ) { |
||
|
0 ignored issues
–
show
|
|||
| 10 | $builder |
||
| 11 | ->require_jetpack_plan_supports( 'recurring-payments' ) |
||
| 12 | ->require_filter( 'jetpack_block_editor_enable_upgrade_nudge', true ); |
||
| 13 | } ); |
||
| 14 | } |
||
| 15 | } |
||
| 16 | |||
| 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: