Page MenuHomePhabricator

PhanTypeMismatchArgumentNullableInternal
Closed, ResolvedPublic

Description

Seen on an unrelated patch

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Linter/+/1078749
https://integration.wikimedia.org/ci/job/mwext-php74-phan/46699/console

15:38:49 includes/SpecialLintErrors.php:213 PhanTypeMismatchArgumentNullableInternal Argument 1 ($string) is $namespaceRequestValues of type ?string but \strlen() takes string (expected type to be non-nullable)
15:38:49 includes/SpecialLintErrors.php:214 PhanTypeMismatchArgumentNullableInternal Argument 2 ($string) is $namespaceRequestValues of type ?string but \explode() takes string (expected type to be non-nullable)

Seemingly broken by rMW7be5a303d162: WebRequest: Add PHP return type hint for getRawVal

Event Timeline

Change #1080049 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/Linter@master] SpecialLintErrors: Fix phan failure due to MW core change

https://gerrit.wikimedia.org/r/1080049

Change #1080049 merged by jenkins-bot:

[mediawiki/extensions/Linter@master] SpecialLintErrors: Fix phan failure due to MW core change

https://gerrit.wikimedia.org/r/1080049

Reedy claimed this task.