Page MenuHomePhabricator
Paste P11555

phan errors
ActivePublic

Authored by Lokal_Profil on Jun 17 2020, 8:33 AM.
Referenced Files
F31869041: raw.txt
Jun 17 2020, 8:56 AM
F31869028: raw.txt
Jun 17 2020, 8:33 AM
Subscribers
None
includes/ApiWikispeech.php:22 PhanTypeMismatchArgumentNullable Argument 1 ($text) is $title of type ?\IDBAccessObject|?\MediaWiki\Linker\LinkTarget|?\Title|?string but \wfEscapeWikiText() takes string defined at /vagrant/mediawiki/includes/GlobalFunctions.php:1484 (expected type to be non-nullable)
includes/ApiWikispeech.php:41 PhanTypeMismatchArgumentNullable Argument 1 ($title) is $title of type ?\IDBAccessObject|?\MediaWiki\Linker\LinkTarget|?\Title|?string but \Segmenter::segmentPage() takes string defined at includes/Segmenter.php:67 (expected type to be non-nullable)
includes/CleanedText.php:43 PhanTypeMismatchDefault Default value for array $path can't be string
includes/Cleaner.php:80 PhanImpossibleCondition Impossible attempt to cast count($this->cleanedContent) of type 0 to truthy
includes/Cleaner.php:81 PhanTypeInvalidDimOffset Invalid offset 0 of array type array{}
includes/Cleaner.php:239 PhanUndeclaredTypeReturnType Return type of lastElement() is undeclared type \The
includes/Cleaner.php:241 PhanTypeMismatchReturn Returning type null but lastElement() is declared to return \The
includes/Segmenter.php:73 PhanTypeMismatchArgument Argument 1 ($title) is $title of type string but \WikiPage::factory() takes \Title defined at /vagrant/mediawiki/includes/page/WikiPage.php:146
includes/Segmenter.php:275 PhanTypeMismatchReturn Returning type null but getSentenceFinalOffset() is declared to return int
includes/Segmenter.php:305 PhanTypeMismatchArgumentNullable Argument 1 ($string) is $characterAfterNext of type ?false|?string but \Segmenter::isUpper() takes string defined at includes/Segmenter.php:324 (expected type to be non-nullable)
includes/UtteranceStore.php:146 PhanTypeMismatchReturn Returning type null but findUtterance() is declared to return array
includes/UtteranceStore.php:150 PhanTypeMismatchReturn Returning type null but findUtterance() is declared to return array
includes/UtteranceStore.php:184 PhanTypeMismatchReturn Returning type null but findUtterance() is declared to return array
includes/UtteranceStore.php:201 PhanTypeMismatchReturn Returning type null but findUtterance() is declared to return array