3286928-dbug-drupal-10#5: Added parameter and return typehinting per...
3286928-dbug-drupal-10#5: Added parameter and return typehinting per https://www.drupal.org/docs/develop/standards/php/php-coding-standards#s-parameter-and-return-typehinting.
Closes #3286928