godaddy-wordpress / godaddy-wordpress/coblocks

ISBAT Implicitly marking parameter as nullable is deprecated

Open
#2,652 0 comments 0 reactions 0 assignees View on GitHub
[Priority] Low [Type] Bug
Dominant language
JavaScript
Stars
794
Forks
142
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug:
I should be able to traverse my site without error warnings when using current or future PHP versions.

### Examples:

```
PHP Deprecated: CoBlocks_Block_Migration::query_selector_all(): Implicitly marking parameter $context_node as nullable is deprecated, the explicit nullable type must be used instead in /../plugins/coblocks/includes/block-migrate/class-coblocks-block-migration.php on line 202
```

```
PHP Deprecated: GoDaddy\WordPress\Plugins\CoBlocks\Dependencies\GoDaddy\Styles\StylesLoader::setInstance(): Implicitly marking parameter $instance as nullable is deprecated, the explicit nullable type must be used instead in /..plugins/coblocks/includes/Dependencies/GoDaddy/Styles/StylesLoader.php on line 68
```

```
PHP Deprecated: CoBlocks_Block_Migration::query_selector(): Implicitly marking parameter $context_node as nullable is deprecated, the explicit nullable type must be used instead in /../plugins/coblocks/includes/block-migrate/class-coblocks-block-migration.php on line 214
```

### Isolating the problem:

- [x] This bug happens with no other plugins activated
- [x] This bug happens with a default WordPress theme active
- [x] This bug happens **without** the Gutenberg plugin active
- [x] I can reproduce this bug consistently using the steps above

### WordPress version:
6.9

### PHP Version:
8.4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.