PHP 5.1 deprecation messages...

Deprecated function: Drupal\search_api_sort_priority\Plugin\search_api\processor\ContentBundle::getPropertyDefinitions(): Implicitly marking parameter $datasource as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of vendor\composer\ClassLoader.php).

System (LOCAL DEV Laragon)

Drupal 11.3.3
PHP v8.5.1
PHP Memory limit: 512M
PHP Caching module: OpCache
CommentFileSizeAuthor
#5 3576214-5.patch4.14 KBhmdnawaz
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sirclickalot created an issue. See original summary.

nickolaj made their first commit to this issue’s fork.

nickolaj’s picture

Status: Active » Needs review

Patch adds explicit nullable type declaration (`?DatasourceInterface`) to the `$datasource` parameter in `getPropertyDefinitions()` across all 6 processor plugins (ContentBundle, FileMime, MediaBundle, ParagraphBundle, Role, Statistics) to fix the PHP 8.5 implicit nullable deprecation.

hmdnawaz’s picture

StatusFileSize
new4.14 KB

Patch from MR

sirclickalot’s picture

Can we get this fix into release please?

Thank you