Skip to content

PHP 8.4 deprecation warnings #890

@Nikerabbit

Description

@Nikerabbit

Setup

  • Maps version: master (12.1.1)
  • MW version: 1.46-alpha
  • PHP version: 8.4.16
  • SMW version (if applicable):

Issue

Detailed description of the issue and a stack trace if applicable:

I am seeing bunch of deprecation warnings after upgrading to PHP 8.4:

PHP Deprecated:  ParserHooks\FunctionRunner::__construct(): Implicitly marking parameter $paramProcessor as nullable is deprecated, the explicit nullable type must be used in
stead in /srv/mediawiki/workdir/vendor/mediawiki/parser-hooks/src/FunctionRunner.php on line 32

PHP Deprecated:  ParserHooks\Internal\Runner::__construct(): Implicitly marking parameter $paramProcessor as nullable is deprecated, the explicit nullable type must be used instead in /srv/mediawiki/workdir/vendor/mediawiki/parser-hooks/src/Internal/Runner.php on line 53

PHP Deprecated:  ParserHooks\HookRunner::__construct(): Implicitly marking parameter $paramProcessor as nullable is deprecated, the explicit nullable type must be used instead in /srv/mediawiki/workdir/vendor/mediawiki/parser-hooks/src/HookRunner.php on line 42

PHP Deprecated:  Maps\Presentation\MapsDistanceParser::parseAndFormat(): Implicitly marking parameter $unit as nullable is deprecated, the explicit nullable type must be used instead in /srv/mediawiki/workdir/extensions/Maps/src/Presentation/MapsDistanceParser.php on line 20

PHP Deprecated:  Maps\Presentation\MapsDistanceParser::formatDistance(): Implicitly marking parameter $unit as nullable is deprecated, the explicit nullable type must be used instead in /srv/mediawiki/workdir/extensions/Maps/src/Presentation/MapsDistanceParser.php on line 27

PHP Deprecated:  Maps\Presentation\MapsDistanceParser::getUnitRatio(): Implicitly marking parameter $unit as nullable is deprecated, the explicit nullable type must be used instead in /srv/mediawiki/workdir/extensions/Maps/src/Presentation/MapsDistanceParser.php on line 35

Steps to reproduce the observation (recommendation is to use the sandbox):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions