Skip to content

Commit 5260d33

Browse files
committed
Fix PHPCompatibility checks
1 parent 73e2e5d commit 5260d33

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/wp-includes/abilities-api/class-wp-abilities-registry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ final class WP_Abilities_Registry {
2323
* @since 0.1.0
2424
* @var WP_Ability[]
2525
*/
26-
private array $registered_abilities = array();
26+
private $registered_abilities = array();
2727

2828
/**
2929
* Container for the main instance of the class.
3030
*
3131
* @since 0.1.0
3232
* @var ?WP_Abilities_Registry
3333
*/
34-
private static ?WP_Abilities_Registry $instance = null;
34+
private static $instance = null;
3535

3636
/**
3737
* Registers a new ability.

src/wp-includes/abilities-api/class-wp-ability.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,39 @@ class WP_Ability {
2727
* @since 0.1.0
2828
* @var string
2929
*/
30-
protected string $name;
30+
protected $name;
3131

3232
/**
3333
* The human-readable ability label.
3434
*
3535
* @since 0.1.0
3636
* @var string
3737
*/
38-
protected string $label;
38+
protected $label;
3939

4040
/**
4141
* The detailed ability description.
4242
*
4343
* @since 0.1.0
4444
* @var string
4545
*/
46-
protected string $description;
46+
protected $description;
4747

4848
/**
4949
* The optional ability input schema.
5050
*
5151
* @since 0.1.0
5252
* @var array
5353
*/
54-
protected array $input_schema = array();
54+
protected $input_schema = array();
5555

5656
/**
5757
* The optional ability output schema.
5858
*
5959
* @since 0.1.0
6060
* @var array
6161
*/
62-
protected array $output_schema = array();
62+
protected $output_schema = array();
6363

6464
/**
6565
* The ability execute callback.
@@ -83,7 +83,7 @@ class WP_Ability {
8383
* @since 0.1.0
8484
* @var array
8585
*/
86-
protected array $meta = array();
86+
protected $meta = array();
8787

8888
/**
8989
* Constructor.
@@ -197,7 +197,7 @@ protected function validate_input( array $input = array() ): bool {
197197
__( 'Invalid input provided for ability "%1$s": %2$s.' ),
198198
$this->name,
199199
$valid_input->get_error_message()
200-
),
200+
)
201201
),
202202
'0.1.0'
203203
);
@@ -243,7 +243,7 @@ protected function do_execute( array $input ) {
243243
__METHOD__,
244244
esc_html(
245245
/* translators: %s ability name. */
246-
sprintf( __( 'Ability "%s" does not have a valid execute callback.' ), $this->name ),
246+
sprintf( __( 'Ability "%s" does not have a valid execute callback.' ), $this->name )
247247
),
248248
'0.1.0'
249249
);
@@ -276,7 +276,7 @@ protected function validate_output( $output ): bool {
276276
__( 'Invalid output provided for ability "%1$s": %2$s.' ),
277277
$this->name,
278278
$valid_output->get_error_message()
279-
),
279+
)
280280
),
281281
'0.1.0'
282282
);

0 commit comments

Comments
 (0)