Page MenuHomePhabricator

Enable Phan for MW:MathSearch
Closed, ResolvedPublic

Description

Somehow Jenkins tries to execute phan tests for extension MathSearch now. Thus phan needs to be enabled vas described on https://www.mediawiki.org/wiki/Continuous_integration/Tutorials/Add_phan_to_a_MediaWiki_extension

Event Timeline

Physikerwelt created this task.
Physikerwelt moved this task from Backlog to Doing on the MathSearch board.

There are quite a few issues:

  • includes/FormulaInfo.php:24 PhanParamSignatureMismatch Declaration of function execute(\unknown $par) should be compatible with function execute(null|string $subPage) defined in ../../includes/specialpage/SpecialPage.php:621
  • includes/FormulaInfo.php:24 PhanUndeclaredTypeParameter Parameter $par has undeclared type \unknown
  • includes/FormulaInfo.php:28 PhanTypeMismatchArgument Argument 2 ($default) is false of type false but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/FormulaInfo.php:37 PhanTypeMismatchArgument Argument 1 ($oldID) is $pid of type string but \FormulaInfo::DisplayInfo() takes int defined at includes/FormulaInfo.php:128
  • includes/FormulaInfo.php:52 PhanParamTooMany Call with 1 arg(s) to \MathObject::__construct() which only takes 0 arg(s) defined at includes/MathObject.php:7
  • includes/FormulaInfo.php:114 PhanTypeArraySuspiciousNullable Suspicious array access to nullable array|bool|float|int|null|string
  • includes/FormulaInfo.php:117 PhanTypeArraySuspiciousNullable Suspicious array access to nullable array|bool|float|int|null|string
  • includes/FormulaInfo.php:150 PhanTypeMismatchArgument Argument 2 ($eid) is $eid of type string but \MathObject::constructformpage() takes int defined at includes/MathObject.php:80
  • includes/FormulaInfo.php:162 PhanUndeclaredMethod Call to undeclared method \MathObject::getMd5
  • includes/FormulaInfo.php:163 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • includes/FormulaInfo.php:168 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • includes/FormulaInfo.php:169 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • includes/FormulaInfo.php:171 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • includes/FormulaInfo.php:198 PhanUndeclaredMethod Call to undeclared method \MathObject::getMathml (Did you mean expr->getMathMlAltText())
  • includes/FormulaInfo.php:198 PhanUndeclaredMethod Call to undeclared method \MathObject::isValidMathML
  • includes/FormulaInfo.php:199 PhanUndeclaredMethod Call to undeclared method \MathObject::getMathml (Did you mean expr->getMathMlAltText())
  • includes/FormulaInfo.php:199 PhanUndeclaredMethod Call to undeclared method \MathObject::isValidMathML
  • includes/FormulaInfo.php:201 PhanTypeMismatchArgumentInternalProbablyReal Argument 2 ($quote_style) is 'status' of type 'status' but \htmlspecialchars() takes int
  • includes/FormulaInfo.php:201 PhanTypeMismatchArgumentInternal Argument 1 ($string) is $mo->getLog() of type \log but \htmlspecialchars() takes string
  • includes/FormulaInfo.php:210 PhanTypeSuspiciousStringExpression Suspicious type \timestamp of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/FormulaInfo.php:272 PhanUndeclaredClassMethod Call to method getMathNames from undeclared class \MathHooks
  • includes/FormulaInfo.php:275 PhanUndeclaredClassMethod Call to method getRenderer from undeclared class \MathRenderer
  • includes/FormulaInfo.php:337 PhanUndeclaredMethod Call to undeclared method \MathObject::writeCache
  • includes/GetEquationsByQuery.php:22 PhanParamSignatureMismatch Declaration of function execute(\unknown $par) should be compatible with function execute(null|string $subPage) defined in ../../includes/specialpage/SpecialPage.php:621
  • includes/GetEquationsByQuery.php:22 PhanUndeclaredTypeParameter Parameter $par has undeclared type \unknown
  • includes/GetEquationsByQuery.php:77 SecurityCheck-XSS Calling method \OutputPage::addHTML() in \GetEquationsByQuery::execute that outputs using tainted argument $[arg #1]. (Caused by: Builtin-\OutputPage::addHTML) (Caused by: includes/GetEquationsByQuery.php +74)
  • includes/GetEquationsByQuery.php:80 PhanTypeMismatchArgument Argument 2 ($default) is false of type false but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/GetEquationsByQuery.php:83 PhanUndeclaredClassMethod Call to method getRenderer from undeclared class \MathRenderer
  • includes/ImportCsv.php:17 PhanTypeMismatchProperty Assigning false to property but \ImportCsv->runId is int
  • includes/ImportCsv.php:55 PhanTypeMismatchArgument Argument 1 ($run) is $runId of type int|null but \ImportCsv::validateRunId() takes string defined at includes/ImportCsv.php:70
  • includes/ImportCsv.php:93 PhanTypeMismatchProperty Assigning false to property but \ImportCsv->runId is int
  • includes/ImportCsv.php:98 PhanTypeMismatchProperty Assigning false to property but \ImportCsv->runId is int
  • includes/ImportCsv.php:127 PhanTypeMismatchReturn Returning type string but importFromFile() is declared to return null
  • includes/ImportCsv.php:132 PhanTypeMismatchArgumentInternal Argument 1 ($fp) is $csv_file of type string but \fgetcsv() takes resource
  • includes/ImportCsv.php:138 PhanTypeMismatchArgumentInternal Argument 1 ($fp) is $csv_file of type string but \fgetcsv() takes resource
  • includes/ImportCsv.php:140 PhanTypeMismatchArgumentInternal Argument 1 ($fp) is $csv_file of type string but \fclose() takes resource
  • includes/ImportCsv.php:148 PhanTypeMismatchArgumentNullableInternal Argument 1 ($str1) is $table[0][0] of type ?string but \strncmp() takes string (expected type to be non-nullable)
  • includes/ImportCsv.php:149 PhanTypeMismatchArgumentNullableInternal Argument 1 ($str) is $table[0][0] of type ?string but \substr() takes string (expected type to be non-nullable)
  • includes/ImportCsv.php:216 PhanTypeMismatchReturn Returning type true but importFromArray() is declared to return null|string
  • includes/ImportCsv.php:278 PhanTypeMismatchArgument Argument 1 ($runID) is $this->runId of type false|int but \ImportCsv::deleteRun() takes string defined at includes/ImportCsv.php:292
  • includes/MathHighlighter.php:53 PhanCommentParamOutOfOrder Expected @param annotation for $tagPos to be before the @param annotation for $wikiText
  • includes/MathIdGenerator.php:162 PhanTypeArraySuspiciousNullable Suspicious array access to nullable ?array|?array<string,mixed>|?string
  • includes/MathIdGenerator.php:173 PhanTypeArraySuspiciousNullable Suspicious array access to nullable ?array|?array<string,mixed>|?string
  • includes/MathObject.php:7 PhanUndeclaredExtendedClass Class extends undeclared class \MathMathML
  • includes/MathObject.php:13 PhanUndeclaredTypeProperty Property \MathObject->timestamp has undeclared type \timestamp (Did you mean class \MWTimestamp)
  • includes/MathObject.php:63 PhanUndeclaredTypeParameter Parameter $renderer has undeclared type \MathRenderer
  • includes/MathObject.php:64 PhanParamTooMany Call with 1 arg(s) to \MathObject::__construct() which only takes 0 arg(s) defined at includes/MathObject.php:7
  • includes/MathObject.php:64 PhanUndeclaredClassMethod Call to method getUserInputTex from undeclared class \MathRenderer
  • includes/MathObject.php:65 PhanUndeclaredClassMethod Call to method getMathml from undeclared class \MathRenderer
  • includes/MathObject.php:65 PhanUndeclaredMethod Call to undeclared method \MathObject::setMathml
  • includes/MathObject.php:66 PhanUndeclaredClassMethod Call to method getSvg from undeclared class \MathRenderer
  • includes/MathObject.php:66 PhanUndeclaredMethod Call to undeclared method \MathObject::setSvg (Did you mean expr->getSvg())
  • includes/MathObject.php:67 PhanUndeclaredClassMethod Call to method getMode from undeclared class \MathRenderer
  • includes/MathObject.php:67 PhanUndeclaredMethod Call to undeclared method \MathObject::setMode
  • includes/MathObject.php:68 PhanUndeclaredClassMethod Call to method getMathStyle from undeclared class \MathRenderer
  • includes/MathObject.php:68 PhanUndeclaredMethod Call to undeclared method \MathObject::setMathStyle
  • includes/MathObject.php:69 PhanUndeclaredClassProperty Reference to instance property rbi from undeclared class \MathRenderer
  • includes/MathObject.php:69 PhanUndeclaredMethod Call to undeclared method \MathObject::setRestbaseInterface
  • includes/MathObject.php:70 PhanUndeclaredClassMethod Call to method getInputType from undeclared class \MathRenderer
  • includes/MathObject.php:70 PhanUndeclaredMethod Call to undeclared method \MathObject::setInputType
  • includes/MathObject.php:86 PhanTypeMismatchReturn Returning type \self|bool but constructformpage() is declared to return \MathObject
  • includes/MathObject.php:96 PhanParamTooMany Call with 2 arg(s) to \MathObject::__construct() which only takes 0 arg(s) defined at includes/MathObject.php:7
  • includes/MathObject.php:126 PhanUndeclaredTypeReturnType Return type of constructformpagerow() is undeclared type \self
  • includes/MathObject.php:195 PhanUndeclaredTypeReturnType Return type of getTimestamp() is undeclared type \timestamp (Did you mean class \MWTimestamp)
  • includes/MathObject.php:203 PhanUndeclaredTypeParameter Parameter $timestamp has undeclared type \timestamp (Did you mean class \MWTimestamp)
  • includes/MathObject.php:211 PhanUndeclaredTypeReturnType Return type of getLog() is undeclared type \log
  • includes/MathObject.php:212 PhanTypeMismatchReturn Returning type string but getLog() is declared to return \log
  • includes/MathObject.php:220 PhanUndeclaredProperty Reference to undeclared property \MathObject->changed
  • includes/MathObject.php:293 PhanUndeclaredProperty Reference to undeclared property \MathObject->inputHash
  • includes/MathObject.php:294 PhanUndeclaredProperty Reference to undeclared property \MathObject->inputHash
  • includes/MathObject.php:296 PhanUndeclaredClass Reference to undeclared class \MathMathML
  • includes/MathObject.php:309 PhanUndeclaredMethod Call to undeclared method \MathObject::readFromDatabase
  • includes/MathObject.php:311 PhanUndeclaredMethod Call to undeclared method \MathObject::getMathml (Did you mean expr->getMathMlAltText())
  • includes/MathObject.php:429 PhanUndeclaredMethod Call to undeclared method \MathObject::getInputType
  • includes/MathObject.php:429 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • includes/MathObject.php:432 PhanUndeclaredClass Reference to undeclared class \MathMathML
  • includes/MathObject.php:436 PhanUndeclaredMethod Call to undeclared method \MathObject::getInputType
  • includes/MathObject.php:440 PhanUndeclaredMethod Call to undeclared method \MathObject::getInputType
  • includes/MathObject.php:440 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • includes/MathObject.php:516 PhanUndeclaredProperty Reference to undeclared property \MathObject->userInputTex
  • includes/MathObject.php:520 PhanTypeMismatchReturn Returning type false but getTexInfo() is declared to return \MathoidDriver
  • includes/MathObject.php:526 PhanUndeclaredProperty Reference to undeclared property \MathObject->params
  • includes/MathObject.php:533 PhanUndeclaredProperty Reference to undeclared property \MathObject->userInputTex
  • includes/MathObject.php:537 PhanUndeclaredMethod Call to undeclared method \MathObject::getMathml (Did you mean expr->getMathMlAltText())
  • includes/MathObject.php:559 PhanUndeclaredTypeParameter Parameter $renderer has undeclared type \MathRenderer
  • includes/MathObject.php:560 PhanUndeclaredClassMethod Call to method getSvg from undeclared class \MathRenderer
  • includes/MathObject.php:561 PhanTypeInvalidLeftOperandOfNumericOp Invalid operator: left operand of * is string (expected number)
  • includes/MathObject.php:562 PhanUndeclaredClassMethod Call to method getSvg from undeclared class \MathRenderer
  • includes/MathObject.php:563 PhanTypeInvalidLeftOperandOfNumericOp Invalid operator: left operand of * is string (expected number)
  • includes/MathObject.php:574 PhanUndeclaredProperty Reference to undeclared property \MathObject->rbi
  • includes/MathObject.php:602 PhanUndeclaredTypeParameter Parameter $renderingTime has undeclared type \long
  • includes/MathObject.php:624 PhanUndeclaredMethod Call to undeclared method \MathObject::getMode
  • includes/MathObject.php:645 PhanUndeclaredClass Reference to undeclared class \MathMathML
  • includes/MathQueryObject.php:8 PhanTypeMismatchProperty Assigning false to property but \MathQueryObject->queryID is int
  • includes/MathQueryObject.php:89 PhanUndeclaredMethod Call to undeclared method \MathQueryObject::getUserInputTex
  • includes/MathQueryObject.php:117 PhanUndeclaredTypeReturnType Return type of newQueryFromEquationRow() is undeclared type \self
  • includes/MathQueryObject.php:156 PhanTypeMismatchReturn Returning type false but getCQuery() is declared to return string
  • includes/MathQueryObject.php:168 PhanTypeMismatchReturn Returning type false but getPQuery() is declared to return string
  • includes/MathQueryObject.php:176 PhanUndeclaredMethod Call to undeclared method \MathQueryObject::getTex (Did you mean expr->getTexInfo() or expr->getTeXQuery())
  • includes/MathQueryObject.php:228 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathLaTeXML
  • includes/MathQueryObject.php:229 PhanUndeclaredClassMethod Call to method setLaTeXMLSettings from undeclared class \MathLaTeXML
  • includes/MathQueryObject.php:230 PhanUndeclaredClassMethod Call to method setAllowedRootElements from undeclared class \MathLaTeXML
  • includes/MathQueryObject.php:231 PhanUndeclaredClassMethod Call to method render from undeclared class \MathLaTeXML
  • includes/MathQueryObject.php:232 PhanUndeclaredClassMethod Call to method getMathml from undeclared class \MathLaTeXML
  • includes/MathQueryObject.php:237 PhanUndeclaredClassMethod Call to method getLastError from undeclared class \MathLaTeXML
  • includes/MathQueryObject.php:242 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathLaTeXML
  • includes/MathQueryObject.php:245 PhanUndeclaredClassMethod Call to method setLaTeXMLSettings from undeclared class \MathLaTeXML
  • includes/MathQueryObject.php:246 PhanUndeclaredClassMethod Call to method render from undeclared class \MathLaTeXML
  • includes/MathQueryObject.php:247 PhanUndeclaredClassMethod Call to method getMathml from undeclared class \MathLaTeXML
  • includes/MathQueryObject.php:250 PhanUndeclaredClassMethod Call to method getLastError from undeclared class \MathLaTeXML
  • includes/MathQueryObject.php:251 PhanUndeclaredClassMethod Call to method getLastError from undeclared class \MathLaTeXML
  • includes/MathSearchHooks.php:126 PhanUndeclaredTypeParameter Parameter $renderer has undeclared type \MathRenderer
  • includes/MathSearchHooks.php:128 PhanUndeclaredClassMethod Call to method getID from undeclared class \MathRenderer
  • includes/MathSearchHooks.php:129 PhanUndeclaredClassMethod Call to method getID from undeclared class \MathRenderer
  • includes/MathSearchHooks.php:134 PhanUndeclaredClassMethod Call to method getUserInputTex from undeclared class \MathRenderer
  • includes/MathSearchHooks.php:139 PhanUndeclaredClassMethod Call to method setID from undeclared class \MathRenderer
  • includes/MathSearchHooks.php:154 PhanUndeclaredTypeParameter Parameter $renderer has undeclared type \MathRenderer
  • includes/MathSearchHooks.php:164 PhanUndeclaredClassMethod Call to method getInputHash from undeclared class \MathRenderer
  • includes/MathSearchHooks.php:164 PhanUndeclaredClassMethod Call to method getTex from undeclared class \MathRenderer
  • includes/MathSearchHooks.php:177 PhanUndeclaredTypeParameter Parameter $renderer has undeclared type \MathRenderer
  • includes/MathSearchHooks.php:183 PhanUndeclaredMethod Call to undeclared method \MathObject::setID
  • includes/MathSearchHooks.php:197 PhanUndeclaredTypeParameter Parameter $renderer has undeclared type \MathRenderer
  • includes/MathSearchHooks.php:205 PhanPossiblyUndeclaredVariable Variable $eid is possibly undeclared
  • includes/MathSearchHooks.php:207 PhanPossiblyUndeclaredVariable Variable $eid is possibly undeclared
  • includes/MathSearchHooks.php:226 PhanUndeclaredTypeParameter Parameter $renderer has undeclared type \MathRenderer
  • includes/MathSearchHooks.php:233 PhanUndeclaredClassMethod Call to method getInputHash from undeclared class \MathRenderer
  • includes/MathSearchHooks.php:233 PhanUndeclaredClassMethod Call to method getTex from undeclared class \MathRenderer
  • includes/MathSearchHooks.php:235 PhanTypeMismatchArgumentInternal Argument 2 ($subject) is $Result of type null but \preg_match() takes string
  • includes/MathSearchHooks.php:237 PhanTypeMismatchArgumentInternal Argument 3 ($subject) is $Result of type null but \str_replace() takes array|string
  • includes/MathSearchHooks.php:291 PhanTypeMismatchReturn Returning type '' but mQueryTagHook() is declared to return array
  • includes/MathSearchHooks.php:296 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathLaTeXML
  • includes/MathSearchHooks.php:299 PhanUndeclaredClassMethod Call to method setLaTeXMLSettings from undeclared class \MathLaTeXML
  • includes/MathSearchHooks.php:300 PhanUndeclaredClassMethod Call to method render from undeclared class \MathLaTeXML
  • includes/MathSearchHooks.php:301 PhanUndeclaredClassMethod Call to method getHtmlOutput from undeclared class \MathLaTeXML
  • includes/MathSearchHooks.php:302 PhanUndeclaredClassMethod Call to method writeCache from undeclared class \MathLaTeXML
  • includes/MathSearchHooks.php:362 PhanUndeclaredClassMethod Call to method getRenderer from undeclared class \MathRenderer
  • includes/MathSearchHooks.php:364 PhanTypeMismatchArgument Argument 1 ($id) is $id of type null but \MathSearchHooks::setMathId() takes int defined at includes/MathSearchHooks.php:126
  • includes/MathSearchTerm.php:97 PhanTypeSuspiciousNonTraversableForeach Class \Status was passed to foreach, but it does not extend Traversable. This may be intentional, because some of that class's declared properties are accessible from this context. (This check excludes dynamic properties)
  • includes/MlpEvalForm.php:110 PhanUndeclaredClassMethod Call to method renderMath from undeclared class \MathRenderer
  • includes/MlpEvalForm.php:116 SecurityCheck-XSS HTMLForm option label needs escaping (Maybe false positive as could not determine if it was key or value that is unescaped) (Caused by: includes/MlpEvalForm.php +111; includes/MlpEvalForm.php +109)
  • includes/MlpEvalForm.php:144 SecurityCheck-XSS HTMLForm option label needs escaping (Maybe false positive as could not determine if it was key or value that is unescaped) (Caused by: includes/MlpEvalForm.php +139; includes/MlpEvalForm.php +138)
  • includes/MlpEvalForm.php:199 PhanTypeMismatchArgument Argument 1 ($data) is 'pgRst' of type 'pgRst' but \MlpEvalForm::addButton() takes array{name:string,value:string,label-message?:\MessageSpecifier|string|string[],label?:string,label-raw?:string,id?:string,attribs?:array,flags?:string|string[],framed?:bool} defined at ../../includes/htmlform/HTMLForm.php:995
  • includes/MlpEvalForm.php:201 PhanTypeMismatchArgument Argument 1 ($data) is 'fRst' of type 'fRst' but \MlpEvalForm::addButton() takes array{name:string,value:string,label-message?:\MessageSpecifier|string|string[],label?:string,label-raw?:string,id?:string,attribs?:array,flags?:string|string[],framed?:bool} defined at ../../includes/htmlform/HTMLForm.php:995
  • includes/MwsDumpWriter.php:92 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathLaTeXML
  • includes/MwsDumpWriter.php:94 PhanUndeclaredClassMethod Call to method render from undeclared class \MathLaTeXML
  • includes/MwsDumpWriter.php:95 PhanUndeclaredClassMethod Call to method getMathml from undeclared class \MathLaTeXML
  • includes/WikidataDriver.php:28 PhanUndeclaredMethod Call to undeclared method \MediaWiki\Http\HttpRequestFactory::createMultiClient
  • includes/WikidataDriver.php:53 PhanTypeExpectedObjectPropAccess Expected an object instance when accessing an instance property, but saw an expression $this->data with type non-empty-array<mixed,mixed>|non-empty-list<mixed>|true
  • includes/content/ContentMathFormatter.php:47 PhanUndeclaredClassConstant Reference to constant FORMAT_PLAIN from undeclared class \Wikibase\Lib\Formatters\SnakFormatter
  • includes/content/ContentMathFormatter.php:49 PhanUndeclaredClassConstant Reference to constant FORMAT_WIKI from undeclared class \Wikibase\Lib\Formatters\SnakFormatter
  • includes/content/ContentMathFormatter.php:52 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathLaTeXML
  • includes/content/ContentMathFormatter.php:54 PhanUndeclaredClassMethod Call to method checkTex from undeclared class \MathLaTeXML
  • includes/content/ContentMathFormatter.php:54 PhanUndeclaredClassMethod Call to method render from undeclared class \MathLaTeXML
  • includes/content/ContentMathFormatter.php:55 PhanUndeclaredClassMethod Call to method getHtmlOutput from undeclared class \MathLaTeXML
  • includes/content/ContentMathFormatter.php:56 PhanUndeclaredClassMethod Call to method writeCache from undeclared class \MathLaTeXML
  • includes/content/ContentMathFormatter.php:58 PhanUndeclaredClassMethod Call to method getLastError from undeclared class \MathLaTeXML
  • includes/content/ContentMathFormatter.php:61 PhanUndeclaredClassConstant Reference to constant FORMAT_HTML_DIFF from undeclared class \Wikibase\Lib\Formatters\SnakFormatter
  • includes/content/ContentMathMLRdfBuilder.php:7 PhanUndeclaredInterface Class implements undeclared interface \Wikibase\Repo\Rdf\ValueSnakRdfBuilder
  • includes/content/ContentMathMLRdfBuilder.php:27 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathLaTeXML
  • includes/content/ContentMathMLRdfBuilder.php:28 PhanUndeclaredClassMethod Call to method checkTeX from undeclared class \MathLaTeXML
  • includes/content/ContentMathMLRdfBuilder.php:28 PhanUndeclaredClassMethod Call to method render from undeclared class \MathLaTeXML
  • includes/content/ContentMathMLRdfBuilder.php:29 PhanUndeclaredClassMethod Call to method getMathml from undeclared class \MathLaTeXML
  • includes/content/ContentMathMLRdfBuilder.php:31 PhanUndeclaredClassMethod Call to method getLastError from undeclared class \MathLaTeXML
  • includes/content/ContentMathValidator.php:32 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathLaTeXML
  • includes/content/ContentMathValidator.php:33 PhanUndeclaredClassMethod Call to method checkTeX from undeclared class \MathLaTeXML
  • includes/content/ContentMathValidator.php:34 PhanUndeclaredClassMethod Call to method writeCache from undeclared class \MathLaTeXML
  • includes/content/ContentMathValidator.php:41 PhanTypeMismatchArgument Argument 1 ($text) is null of type null but \ValueValidators\Error::newError() takes string defined at ../../vendor/data-values/interfaces/src/ValueValidators/Error.php:33
  • includes/content/ContentMathValidator.php:41 PhanUndeclaredClassMethod Call to method getLastError from undeclared class \MathLaTeXML
  • includes/content/ContentMathWikidataHook.php:29 PhanUndeclaredClassMethod Call to method getDefaultValidatorBuilders from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/content/ContentMathWikidataHook.php:39 PhanUndeclaredClassMethod Call to method getDefaultInstance from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/content/ContentMathWikidataHook.php:40 PhanUndeclaredClassMethod Call to method __construct from undeclared class \Wikibase\Repo\Parsers\WikibaseStringValueNormalizer
  • includes/content/ContentMathWikidataHook.php:41 PhanTypeMismatchArgument Argument 1 ($normalizer) is $normalizer of type \Wikibase\Repo\Parsers\WikibaseStringValueNormalizer but \ValueParsers\StringParser::__construct() takes ?\ValueParsers\Normalizers\StringNormalizer defined at ../../vendor/data-values/common/src/ValueParsers/StringParser.php:28
  • includes/content/ContentMathWikidataHook.php:51 PhanUndeclaredTypeParameter Parameter $vocab has undeclared type \Wikibase\Repo\Rdf\RdfVocabulary
  • includes/content/ContentMathWikidataHook.php:53 PhanUndeclaredTypeParameter Parameter $tracker has undeclared type \Wikibase\Repo\Rdf\EntityMentionListener
  • includes/content/ContentMathWikidataHook.php:54 PhanUndeclaredTypeParameter Parameter $dedupe has undeclared type \Wikibase\Repo\Rdf\DedupeBag
  • includes/engines/MathEngineRest.php:173 PhanUndeclaredProperty Reference to undeclared property \MathEngineRest->postData
  • includes/specials/SpecialDisplayTopics.php:77 SecurityCheck-SQLInjection Calling method \SpecialDisplayTopics::displayOverview() in \SpecialDisplayTopics::displayTopic that outputs using tainted argument $[arg #1]. (Caused by: includes/specials/SpecialDisplayTopics.php +48) (Caused by: includes/specials/SpecialDisplayTopics.php +72)
  • includes/specials/SpecialDisplayTopics.php:78 SecurityCheck-SQLInjection Calling method \SpecialDisplayTopics::printMostFrequentRuns() in \SpecialDisplayTopics::displayTopic that outputs using tainted argument $qId. (Caused by: includes/specials/SpecialDisplayTopics.php +131) (Caused by: includes/specials/SpecialDisplayTopics.php +72)
  • includes/specials/SpecialDisplayTopics.php:154 PhanParamTooMany Call with 1 arg(s) to \MathObject::__construct() which only takes 0 arg(s) defined at includes/MathObject.php:7
  • includes/specials/SpecialLaTeXTranslator.php:41 PhanTypeMissingReturn Method \SpecialLaTeXTranslator::processInput is declared to return bool in phpdoc but has no return value
  • includes/specials/SpecialMathDebug.php:23 PhanTypeMismatchArgument Argument 2 ($default) is 0 of type 0 but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/specials/SpecialMathDebug.php:24 PhanTypeMismatchArgument Argument 2 ($default) is 10 of type 10 but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $action. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +26)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $length. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +24)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $offset. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +23)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $page. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +25)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $purge. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +27)
  • includes/specials/SpecialMathDebug.php:43 PhanTypeMismatchArgument Argument 1 ($offset) is $offset of type null|string but \SpecialMathDebug::generateParserTests() takes int defined at includes/specials/SpecialMathDebug.php:155
  • includes/specials/SpecialMathDebug.php:43 PhanTypeMismatchArgument Argument 2 ($length) is $length of type null|string but \SpecialMathDebug::generateParserTests() takes int defined at includes/specials/SpecialMathDebug.php:155
  • includes/specials/SpecialMathDebug.php:88 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathDebug.php:89 PhanUndeclaredClassMethod Call to method setPurge from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathDebug.php:94 PhanUndeclaredClassMethod Call to method setTex from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathDebug.php:96 PhanUndeclaredClassMethod Call to method render from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathDebug.php:98 PhanUndeclaredClassMethod Call to method render from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathDebug.php:104 PhanUndeclaredClassMethod Call to method getPostValue from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathDebug.php:106 PhanUndeclaredClassMethod Call to method getPostValue from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathDebug.php:168 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathMathML
  • includes/specials/SpecialMathDebug.php:169 PhanUndeclaredClassMethod Call to method checkTeX from undeclared class \MathMathML
  • includes/specials/SpecialMathDebug.php:170 PhanUndeclaredClassMethod Call to method getTex from undeclared class \MathMathML
  • includes/specials/SpecialMathDebug.php:186 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathDebug.php:187 PhanUndeclaredClassMethod Call to method setPurge from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathDebug.php:193 PhanUndeclaredClassMethod Call to method setTex from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathDebug.php:194 PhanUndeclaredClassMethod Call to method render from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathDebug.php:206 PhanUndeclaredClassMethod Call to method getRenderer from undeclared class \MathRenderer
  • includes/specials/SpecialMathDebug.php:228 PhanUndeclaredClassMethod Call to method getRenderer from undeclared class \MathRenderer
  • includes/specials/SpecialMathDownloadResult.php:47 PhanTypeSuspiciousStringExpression Suspicious type bool|false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/specials/SpecialMathDownloadResult.php:48 SecurityCheck-XSS Echoing expression that was not html escaped (Caused by: includes/specials/SpecialMathDownloadResult.php +26; includes/specials/SpecialMathDownloadResult.php +23; includes/specials/SpecialMathDownloadResult.php +22; includes/specials/SpecialMathDownloadResult.php +21; includes/specials/SpecialMathDownloa)
  • includes/specials/SpecialMathIndex.php:77 PhanUndeclaredClassMethod Call to method __construct from undeclared class \CreateMathIndex
  • includes/specials/SpecialMathIndex.php:78 PhanUndeclaredClassMethod Call to method loadParamsAndArgs from undeclared class \CreateMathIndex
  • includes/specials/SpecialMathIndex.php:81 PhanUndeclaredClassMethod Call to method execute from undeclared class \CreateMathIndex
  • includes/specials/SpecialMathSearch.php:231 PhanTypeMismatchArgumentInternal Argument 2 ($mode) is true of type true but \count() takes int
  • includes/specials/SpecialMathSearch.php:256 PhanUndeclaredMethod Call to undeclared method \MathObject::getMathml (Did you mean expr->getMathMlAltText())
  • includes/specials/SpecialMathSearch.php:285 PhanUndeclaredMethod Call to undeclared method \MathObject::getMathml (Did you mean expr->getMathMlAltText())
  • includes/specials/SpecialMathSearch.php:286 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathMathML
  • includes/specials/SpecialMathSearch.php:287 PhanUndeclaredClassMethod Call to method setMathml from undeclared class \MathMathML
  • includes/specials/SpecialMathSearch.php:288 PhanUndeclaredClassMethod Call to method render from undeclared class \MathMathML
  • includes/specials/SpecialMathSearch.php:289 PhanUndeclaredClassMethod Call to method getHtmlOutput from undeclared class \MathMathML
  • includes/specials/SpecialMathSearch.php:290 PhanUndeclaredClassMethod Call to method writeCache from undeclared class \MathMathML
  • includes/specials/SpecialMathSearch.php:293 PhanUndeclaredMethod Call to undeclared method \MathObject::getHtmlOutput
  • includes/specials/SpecialMathSearch.php:313 PhanTypeMismatchReturnNullable Returning type ?\DOMNode but getElementById() is declared to return \DOMElement (expected returned value to be non-nullable)
  • includes/specials/SpecialMathSearch.php:418 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathSearch.php:419 PhanUndeclaredClassMethod Call to method setLaTeXMLSettings from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathSearch.php:420 PhanUndeclaredClassMethod Call to method setAllowedRootElements from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathSearch.php:421 PhanUndeclaredClassMethod Call to method render from undeclared class \MathLaTeXML
  • includes/specials/SpecialMathSearch.php:422 PhanUndeclaredClassMethod Call to method getMathml from undeclared class \MathLaTeXML
  • includes/specials/SpecialMlpEval.php:195 PhanImpossibleTypeComparison Impossible attempt to check if $title of type \Title is identical to null of type null
  • includes/specials/SpecialMlpEval.php:388 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • includes/specials/SpecialMlpEval.php:392 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • includes/specials/SpecialMlpEval.php:406 PhanTypeMismatchArgument Argument 3 ($formula) is $this->getSvgRenderingAsHtmlFragment() of type string but \SpecialMlpEval::printMathObjectInContext() takes bool|false defined at includes/specials/SpecialMlpEval.php:602
  • includes/specials/SpecialMlpEval.php:410 PhanTypeMismatchArgument Argument 4 ($filter) is 'SpecialMlpEval::removeSVGs' of type 'SpecialMlpEval::removeSVGs' but \SpecialMlpEval::printMathObjectInContext() takes bool|false defined at includes/specials/SpecialMlpEval.php:602
  • includes/specials/SpecialMlpEval.php:411 PhanTypeMismatchArgument Argument 3 ($formula) is $this->getMathMLRenderingAsHtmlFragment() of type string but \SpecialMlpEval::printMathObjectInContext() takes bool|false defined at includes/specials/SpecialMlpEval.php:602
  • includes/specials/SpecialMlpEval.php:434 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • includes/specials/SpecialMlpEval.php:539 PhanTypeMismatchArgument Argument 1 ($tex) is $tex of type false but \SpecialMlpEval::getMathMlRenderer() takes string defined at includes/specials/SpecialMlpEval.php:656
  • includes/specials/SpecialMlpEval.php:540 PhanTypeMismatchArgument Argument 1 ($renderer) is $renderer of type \MathMathML but \MathObject::getReSizedSvgLink() takes \MathRenderer defined at includes/MathObject.php:559
  • includes/specials/SpecialMlpEval.php:546 PhanTypeMismatchArgument Argument 1 ($tex) is $tex of type false but \SpecialMlpEval::getMathMlRenderer() takes string defined at includes/specials/SpecialMlpEval.php:656
  • includes/specials/SpecialMlpEval.php:547 PhanUndeclaredClassMethod Call to method getMathml from undeclared class \MathMathML
  • includes/specials/SpecialMlpEval.php:556 PhanUndeclaredClassMethod Call to method renderMath from undeclared class \MathRenderer
  • includes/specials/SpecialMlpEval.php:556 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • includes/specials/SpecialMlpEval.php:616 PhanTypeMismatchArgument Argument 1 ($text) is $formula of type true but \OutputPage::addHTML() takes string defined at ../../includes/OutputPage.php:1597
  • includes/specials/SpecialMlpEval.php:627 PhanTypeMismatchArgumentInternal Argument 1 ($function) is $filter of type true but \call_user_func_array() takes callable
  • includes/specials/SpecialMlpEval.php:656 PhanUndeclaredTypeReturnType Return type of getMathMlRenderer() is undeclared type \MathMathML
  • includes/specials/SpecialMlpEval.php:658 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathMathML
  • includes/specials/SpecialMlpEval.php:659 PhanUndeclaredClassMethod Call to method checkTex from undeclared class \MathMathML
  • includes/specials/SpecialMlpEval.php:660 PhanUndeclaredClassMethod Call to method render from undeclared class \MathMathML
  • includes/specials/SpecialMlpEval.php:661 PhanUndeclaredClassMethod Call to method writeCache from undeclared class \MathMathML
  • includes/specials/SpecialMlpEval.php:671 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • includes/specials/SpecialMlpEval.php:672 PhanUndeclaredMethod Call to undeclared method \MathObject::getParams
  • includes/specials/SpecialUploadResult.php:185 SecurityCheck-XSS Calling method \SpecialUploadResult::printResultRow() in \SpecialUploadResult::processInput that outputs using tainted argument $result. (Caused by: includes/specials/SpecialUploadResult.php +210) (Caused by: includes/specials/SpecialUploadResult.php +184)
  • includes/specials/SpecialUploadResult.php:199 PhanUndeclaredClassMethod Call to method newFromMd5 from undeclared class \MathLaTeXML
  • includes/specials/SpecialUploadResult.php:255 SecurityCheck-XSS Calling method \OutputPage::addHTML() in \SpecialUploadResult::displayFeedback that outputs using tainted argument $[arg #1]. (Caused by: Builtin-\OutputPage::addHTML) (Caused by: includes/specials/SpecialUploadResult.php +254; includes/specials/SpecialUploadResult.php +252; includes/specials/SpecialUploadResult.php +253; includes/specials/SpecialUploadResult.php +252)
  • includes/specials/SpecialUploadResult.php:306 SecurityCheck-XSS Calling method \OutputPage::addHTML() in \SpecialUploadResult::displayFormulaFeedback that outputs using tainted argument $[arg #1]. (Caused by: Builtin-\OutputPage::addHTML) (Caused by: includes/specials/SpecialUploadResult.php +305; includes/specials/SpecialUploadResult.php +252; includes/specials/SpecialUploadResult.php +303; includes/specials/SpecialUploadResult.php +304; includes/specials/SpecialUploadResult.php +252; includes/specials/SpecialUploadResult.php +303)
  • includes/stackexchange/Field.php:169 PhanUndeclaredClassMethod Call to method getDefaultInstance from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/stackexchange/Field.php:206 PhanTypeVoidAssignment Cannot assign void return value
  • includes/stackexchange/Field.php:208 PhanTypeSuspiciousStringExpression Suspicious type void of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/stackexchange/Field.php:213 PhanTypeMismatchReturn Returning type array{}|non-empty-list<mixed> but getSnaks() is declared to return \Wikibase\DataModel\Snak\PropertyValueSnak
  • includes/stackexchange/Field.php:245 PhanTypePossiblyInvalidDimOffset Possibly invalid offset 'externalIdType' of array type array{propertyId?:'P10'|'P14'|'P16'|'P17'|'P18'|'P19'|'P20'|'P21'|'P22'|'P23'|'P24'|'P25'|'P26'|'P27'|'P28'|'P5'|'P6'|'P7'|'P9',externalIdType?:1|2,map?:array{1:'887',2:'888'},references?:'posts.Id'|'users.Id',excludeFromWb?:true,separator?:'/\x28&\x5blg\x5dt;\x7c\x3c\x7c\x3e\x7c\x2c\x29/'}
  • includes/stackexchange/Field.php:279 PhanTypeMismatchReturn Returning type array<int,string>|int|string|true but getExternalIdType() is declared to return null
  • includes/stackexchange/Formula.php:33 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathMathML
  • includes/stackexchange/Formula.php:34 PhanUndeclaredClassMethod Call to method getInputHash from undeclared class \MathMathML
  • includes/stackexchange/Formula.php:35 PhanUndeclaredClassMethod Call to method writeToDatabase from undeclared class \MathMathML
  • includes/stackexchange/Formula.php:41 PhanUndeclaredClassMethod Call to method getDefaultInstance from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/stackexchange/IdMap.php:24 PhanUndeclaredClassMethod Call to method getDefaultInstance from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/stackexchange/Row.php:32 PhanTypeMismatchArgumentInternal Argument 1 ($error_handler) is (unknown) of type Closure(mixed,mixed,mixed,mixed):void but \set_error_handler() takes callable(int,string):bool|callable(int,string,string):bool|callable(int,string,string,int):bool|callable(int,string,string,int,array):bool|null
  • includes/stackexchange/Row.php:67 PhanUndeclaredClassMethod Call to method getDefaultInstance from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/stackexchange/Row.php:94 PhanTypeMismatchArgument Argument 2 ($extIdType) is $id->getExternalIdType() of type null but \MathSearch\StackExchange\IdMap::addQid() takes int defined at includes/stackexchange/IdMap.php:48
  • includes/stackexchange/Row.php:110 PhanTypeNoAccessiblePropertiesForeach Class \Wikibase\DataModel\Snak\PropertyValueSnak was passed to foreach, but it does not extend Traversable and none of its declared properties are accessible from this context. (This check excludes dynamic properties)
  • maintenance/BatchImport.php:67 PhanTypeMismatchArgument Argument 1 ($csvFile) is fopen($file, 'r') of type false|resource but \ImportCsv::execute() takes string defined at includes/ImportCsv.php:53
  • maintenance/BatchImport.php:67 PhanTypeMismatchArgument Argument 2 ($runId) is $matches['runName'] of type string but \ImportCsv::execute() takes int|null defined at includes/ImportCsv.php:53
  • maintenance/CalculateDistances.php:65 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CalculateDistances.php:66 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CalculateDistances.php:70 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $conds. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CalculateDistances.php:71 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $conds. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CreateBaseXMathTable.php:35 PhanUndeclaredTypeProperty Property \CreateBaseXMathTable->session has undeclared type \BaseXSession
  • maintenance/CreateBaseXMathTable.php:91 PhanUndeclaredClassMethod Call to method execute from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:107 PhanUndeclaredClassMethod Call to method __construct from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:109 PhanUndeclaredClassMethod Call to method execute from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:111 PhanUndeclaredClassMethod Call to method execute from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:117 PhanUndeclaredClassMethod Call to method close from undeclared class \BaseXSession
  • maintenance/CreateDB2MathTable.php:49 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMd5 (Did you mean expr->getDB())
  • maintenance/CreateDB2MathTable.php:50 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getTex
  • maintenance/CreateDB2MathTable.php:53 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMathml
  • maintenance/CreateDB2MathTable.php:56 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMd5 (Did you mean expr->getDB())
  • maintenance/CreateDB2MathTable.php:57 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getTex
  • maintenance/CreateDB2MathTable.php:60 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMathml
  • maintenance/ExportCache.php:98 SecurityCheck-SQLInjection Calling method \ExportMathCache::getMathTagsFromDatabase() in \ExportMathCache::execute that outputs using tainted argument $table. (Caused by: maintenance/ExportCache.php +70) (Caused by: maintenance/ExportCache.php +91)
  • maintenance/ExtractFeatures.php:69 PhanTypeSuspiciousStringExpression Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • maintenance/ExtractFeatures.php:91 PhanTypeInvalidRightOperandOfAdd Invalid operator: right operand of += is \number (expected array or number)
  • maintenance/ExtractFeatures.php:91 PhanTypeMismatchArgument Argument 2 ($pText) is $revtext of type \MediaWiki\Revision\RevisionRecord|\MediaWiki\Storage\RevisionRecord but \ExtractFeatures::doUpdate() takes string defined at maintenance/ExtractFeatures.php:140
  • maintenance/ExtractFeatures.php:140 PhanParamReqAfterOpt Required argument follows optional
  • maintenance/ExtractFeatures.php:140 PhanUndeclaredTypeReturnType Return type of doUpdate() is undeclared type \number
  • maintenance/ExtractFeatures.php:148 PhanParamTooMany Call with 1 arg(s) to \MathObject::__construct() which only takes 0 arg(s) defined at includes/MathObject.php:7
  • maintenance/ExtractFeatures.php:153 PhanTypeMismatchReturn Returning type non-zero-int but doUpdate() is declared to return \number
  • maintenance/ExtractFeatures.php:155 PhanTypeMismatchReturn Returning type 0 but doUpdate() is declared to return \number
  • maintenance/GenerateFeatureTable.php:81 PhanTypeInvalidRightOperandOfAdd Invalid operator: right operand of += is \number (expected array or number)
  • maintenance/GenerateFeatureTable.php:98 PhanUndeclaredTypeReturnType Return type of doUpdate() is undeclared type \number
  • maintenance/GenerateFeatureTable.php:119 PhanTypeMismatchReturn Returning type 0 but doUpdate() is declared to return \number
  • maintenance/GenerateWorkload.php:59 PhanUndeclaredMethod Call to undeclared method \GenerateWorkload::saveToDatabase
  • maintenance/GenerateWorkload.php:60 PhanUndeclaredMethod Call to undeclared method \GenerateWorkload::exportTexDocument
  • maintenance/GenerateWorkload.php:81 PhanTypeMismatchArgument Argument 3 ($conds) is true of type true but \Wikimedia\Rdbms\DBConnRef::select() takes array|string defined at ../../includes/libs/rdbms/database/DBConnRef.php:309
  • maintenance/ImportStackExchangeDump.php:69 PhanTypeMismatchArgument Argument 1 ($file) is $file of type \DirectoryIterator|\FilesystemIterator|\Iterator|\SeekableIterator|\SplFileInfo|\Traversable|iterable|string but \MathSearch\StackExchange\DumpReader::__construct() takes \SplFileObject defined at includes/stackexchange/DumpReader.php:30
  • maintenance/IndexBase.php:98 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \IndexBase::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select)
  • maintenance/IndexBase.php:99 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \IndexBase::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select)
  • maintenance/IndexBase.php:116 PhanTypeMismatchArgumentInternalProbablyReal Argument 2 ($mode) is '0755' of type '0755' but \mkdir() takes int
  • maintenance/MathMLFilter.php:44 PhanUndeclaredClassMethod Call to method getRenderer from undeclared class \MathRenderer
  • maintenance/MathPerformance.php:83 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionExport that outputs using tainted argument $hash. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +82)
  • maintenance/MathPerformance.php:83 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionExport that outputs using tainted argument $tex. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +81)
  • maintenance/MathPerformance.php:111 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\IDatabase::selectField() in \MathPerformance::getFormulae that outputs using tainted argument $table. (Caused by: Builtin-\Wikimedia\Rdbms\IDatabase::selectField) (Caused by: maintenance/MathPerformance.php +106)
  • maintenance/MathPerformance.php:118 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\IDatabase::select() in \MathPerformance::getFormulae that outputs using tainted argument $table. (Caused by: Builtin-\Wikimedia\Rdbms\IDatabase::select) (Caused by: maintenance/MathPerformance.php +106)
  • maintenance/MathPerformance.php:131 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionBenchmark that outputs using tainted argument $hash. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +130)
  • maintenance/MathPerformance.php:131 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionBenchmark that outputs using tainted argument $tex. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +129)
  • maintenance/MathPerformance.php:134 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathRestbaseInterface
  • maintenance/MathPerformance.php:166 PhanUndeclaredClassMethod Call to method mathModeToHashKey from undeclared class \MathHooks
  • maintenance/MathPerformance.php:188 PhanUndeclaredTypeParameter Parameter $rbi has undeclared type \MathRestbaseInterface
  • maintenance/MathPerformance.php:195 PhanUndeclaredClassMethod Call to method getTex from undeclared class \MathRestbaseInterface
  • maintenance/MathPerformance.php:206 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionPng that outputs using tainted argument $hash. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +204)
  • maintenance/MathPerformance.php:206 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionPng that outputs using tainted argument $tex. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +203)
  • maintenance/MathPerformance.php:219 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathMathML
  • maintenance/MathPerformance.php:220 PhanUndeclaredClassMethod Call to method getMd5 from undeclared class \MathMathML
  • maintenance/MathPerformance.php:228 PhanUndeclaredClassMethod Call to method render from undeclared class \MathMathML
  • maintenance/MathPerformance.php:236 PhanTypeMismatchArgument Argument 1 ($renderer) is $mathML of type \MathMathML but \MathObject::cloneFromRenderer() takes \MathRenderer defined at includes/MathObject.php:63
  • maintenance/MathPerformance.php:238 PhanUndeclaredMethod Call to undeclared method \MathObject::getMathml (Did you mean expr->getMathMlAltText())
  • maintenance/MathPerformance.php:240 PhanUndeclaredMethod Call to undeclared method \MathObject::getUserInputTex
  • maintenance/MathPerformance.php:243 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathMathML
  • maintenance/MathPerformance.php:243 PhanUndeclaredMethod Call to undeclared method \MathObject::getMathml (Did you mean expr->getMathMlAltText())
  • maintenance/MathPerformance.php:244 PhanUndeclaredClassMethod Call to method render from undeclared class \MathMathML
  • maintenance/MathPerformance.php:253 PhanTypeMismatchArgument Argument 1 ($renderer) is $mathML of type \MathMathML but \MathObject::cloneFromRenderer() takes \MathRenderer defined at includes/MathObject.php:63
  • maintenance/MathPerformance.php:258 PhanUndeclaredClassMethod Call to method __construct from undeclared class \MathLaTeXML
  • maintenance/MathPerformance.php:259 PhanUndeclaredClassMethod Call to method readFromDatabase from undeclared class \MathLaTeXML
  • maintenance/MathPerformance.php:268 PhanTypeMismatchArgument Argument 1 ($renderer) is $mathML of type \MathLaTeXML but \MathObject::cloneFromRenderer() takes \MathRenderer defined at includes/MathObject.php:63
  • maintenance/MathPerformance.php:271 PhanUndeclaredClassMethod Call to method getMathml from undeclared class \MathLaTeXML
  • maintenance/MathPerformance.php:282 PhanTypeMismatchArgumentInternalProbablyReal Argument 2 ($mode) is '0755' of type '0755' but \mkdir() takes int
  • maintenance/QueryEval.php:37 PhanTypeMismatchArgument Argument 1 ($db) is $db of type \IDatabase|\Wikimedia\Rdbms\IDatabase|string but \MySqlFunctionDropper::__construct() takes \Wikimedia\Rdbms\IMaintainableDatabase defined at ../../includes/installer/DatabaseUpdater.php:112
  • maintenance/QueryEval.php:49 PhanTypeMissingReturn Method \MySqlFunctionDropper::dropFunction is declared to return bool in phpdoc but has no return value
  • maintenance/QueryEval.php:73 PhanTypeMismatchArgument Argument 1 ($db) is $dbw of type \DBConnRef|\IDatabase|\Wikimedia\Rdbms\DBConnRef|\Wikimedia\Rdbms\IDatabase|string but \DatabaseUpdater::newForDB() takes \Wikimedia\Rdbms\IMaintainableDatabase defined at ../../includes/installer/DatabaseUpdater.php:186
  • maintenance/UpdateMath.php:39 PhanUndeclaredTypeProperty Property \UpdateMath->current has undeclared type \MathRenderer
  • maintenance/UpdateMath.php:88 PhanUndeclaredClassMethod Call to method getInputHash from undeclared class \MathRenderer
  • maintenance/UpdateMath.php:136 PhanTypeInvalidRightOperandOfAdd Invalid operator: right operand of += is \number (expected array or number)
  • maintenance/UpdateMath.php:136 PhanTypeMismatchArgument Argument 2 ($pText) is $revText of type \MediaWiki\Revision\RevisionRecord|\MediaWiki\Storage\RevisionRecord but \UpdateMath::doUpdate() takes string defined at maintenance/UpdateMath.php:157
  • maintenance/UpdateMath.php:157 PhanUndeclaredTypeReturnType Return type of doUpdate() is undeclared type \number
  • maintenance/UpdateMath.php:169 PhanUndeclaredClassMethod Call to method getRenderer from undeclared class \MathRenderer
  • maintenance/UpdateMath.php:209 PhanTypeMismatchArgument Argument 1 ($id) is $eId of type null but \MathSearchHooks::setMathId() takes int defined at includes/MathSearchHooks.php:126
  • maintenance/UpdateMath.php:215 PhanPossiblyUndeclaredVariable Variable $eId is possibly undeclared
  • maintenance/UpdateMath.php:224 PhanTypeMismatchReturn Returning type non-zero-int but doUpdate() is declared to return \number
  • maintenance/UpdateMath.php:226 PhanTypeMismatchReturn Returning type 0 but doUpdate() is declared to return \number

@DannyS712 is there something like a phan-fix? Fixing 345 issues manually seems quite a bit of effort.

One of the issues is that phan doesn't know about the Math extension and that it is supposed to be loaded - that should take care of most of the failures

One of the issues is that phan doesn't know about the Math extension and that it is supposed to be loaded - that should take care of most of the failures

and Wikibase as of T255154;-)

with math (234 remaining)

  • includes/FormulaInfo.php:24 PhanParamSignatureMismatch Declaration of function execute(\unknown $par) should be compatible with function execute(null|string $subPage) defined in ../../includes/specialpage/SpecialPage.php:621
  • includes/FormulaInfo.php:24 PhanUndeclaredTypeParameter Parameter $par has undeclared type \unknown
  • includes/FormulaInfo.php:28 PhanTypeMismatchArgument Argument 2 ($default) is false of type false but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/FormulaInfo.php:37 PhanTypeMismatchArgument Argument 1 ($oldID) is $pid of type string but \FormulaInfo::DisplayInfo() takes int defined at includes/FormulaInfo.php:128
  • includes/FormulaInfo.php:114 PhanTypeArraySuspiciousNullable Suspicious array access to nullable array|bool|float|int|null|string
  • includes/FormulaInfo.php:117 PhanTypeArraySuspiciousNullable Suspicious array access to nullable array|bool|float|int|null|string
  • includes/FormulaInfo.php:150 PhanTypeMismatchArgument Argument 2 ($eid) is $eid of type string but \MathObject::constructformpage() takes int defined at includes/MathObject.php:80
  • includes/FormulaInfo.php:201 PhanTypeMismatchArgumentInternalProbablyReal Argument 2 ($quote_style) is 'status' of type 'status' but \htmlspecialchars() takes int
  • includes/FormulaInfo.php:201 PhanTypeMismatchArgumentInternal Argument 1 ($string) is $mo->getLog() of type \log but \htmlspecialchars() takes string
  • includes/FormulaInfo.php:210 PhanTypeSuspiciousStringExpression Suspicious type \timestamp of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/FormulaInfo.php:210 PhanTypeSuspiciousStringExpression Suspicious type bool of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/FormulaInfo.php:277 PhanParamTooMany Call with 1 arg(s) to \MathRenderer::render() which only takes 0 arg(s) defined at ../../extensions/Math/src/MathRenderer.php:201
  • includes/FormulaInfo.php:308 PhanParamTooMany Call with 1 arg(s) to \MathRenderer::render() which only takes 0 arg(s) defined at ../../extensions/Math/src/MathRenderer.php:201
  • includes/GetEquationsByQuery.php:22 PhanParamSignatureMismatch Declaration of function execute(\unknown $par) should be compatible with function execute(null|string $subPage) defined in ../../includes/specialpage/SpecialPage.php:621
  • includes/GetEquationsByQuery.php:22 PhanUndeclaredTypeParameter Parameter $par has undeclared type \unknown
  • includes/GetEquationsByQuery.php:77 SecurityCheck-XSS Calling method \OutputPage::addHTML() in \GetEquationsByQuery::execute that outputs using tainted argument $[arg #1]. (Caused by: Builtin-\OutputPage::addHTML) (Caused by: includes/GetEquationsByQuery.php +74)
  • includes/GetEquationsByQuery.php:80 PhanTypeMismatchArgument Argument 2 ($default) is false of type false but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/GetEquationsByQuery.php:84 PhanParamTooMany Call with 1 arg(s) to \MathRenderer::render() which only takes 0 arg(s) defined at ../../extensions/Math/src/MathRenderer.php:201
  • includes/GetEquationsByQuery.php:88 PhanTypeSuspiciousStringExpression Suspicious type bool of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/ImportCsv.php:17 PhanTypeMismatchProperty Assigning false to property but \ImportCsv->runId is int
  • includes/ImportCsv.php:55 PhanTypeMismatchArgument Argument 1 ($run) is $runId of type int|null but \ImportCsv::validateRunId() takes string defined at includes/ImportCsv.php:70
  • includes/ImportCsv.php:93 PhanTypeMismatchProperty Assigning false to property but \ImportCsv->runId is int
  • includes/ImportCsv.php:98 PhanTypeMismatchProperty Assigning false to property but \ImportCsv->runId is int
  • includes/ImportCsv.php:127 PhanTypeMismatchReturn Returning type string but importFromFile() is declared to return null
  • includes/ImportCsv.php:132 PhanTypeMismatchArgumentInternal Argument 1 ($fp) is $csv_file of type string but \fgetcsv() takes resource
  • includes/ImportCsv.php:138 PhanTypeMismatchArgumentInternal Argument 1 ($fp) is $csv_file of type string but \fgetcsv() takes resource
  • includes/ImportCsv.php:140 PhanTypeMismatchArgumentInternal Argument 1 ($fp) is $csv_file of type string but \fclose() takes resource
  • includes/ImportCsv.php:148 PhanTypeMismatchArgumentNullableInternal Argument 1 ($str1) is $table[0][0] of type ?string but \strncmp() takes string (expected type to be non-nullable)
  • includes/ImportCsv.php:149 PhanTypeMismatchArgumentNullableInternal Argument 1 ($str) is $table[0][0] of type ?string but \substr() takes string (expected type to be non-nullable)
  • includes/ImportCsv.php:216 PhanTypeMismatchReturn Returning type true but importFromArray() is declared to return null|string
  • includes/ImportCsv.php:278 PhanTypeMismatchArgument Argument 1 ($runID) is $this->runId of type false|int but \ImportCsv::deleteRun() takes string defined at includes/ImportCsv.php:292
  • includes/MathHighlighter.php:53 PhanCommentParamOutOfOrder Expected @param annotation for $tagPos to be before the @param annotation for $wikiText
  • includes/MathIdGenerator.php:162 PhanTypeArraySuspiciousNullable Suspicious array access to nullable ?array|?array<string,mixed>|?string
  • includes/MathIdGenerator.php:173 PhanTypeArraySuspiciousNullable Suspicious array access to nullable ?array|?array<string,mixed>|?string
  • includes/MathObject.php:13 PhanUndeclaredTypeProperty Property \MathObject->timestamp has undeclared type \timestamp (Did you mean class \MWTimestamp)
  • includes/MathObject.php:86 PhanTypeMismatchReturn Returning type \self|bool but constructformpage() is declared to return \MathObject
  • includes/MathObject.php:126 PhanUndeclaredTypeReturnType Return type of constructformpagerow() is undeclared type \self
  • includes/MathObject.php:195 PhanUndeclaredTypeReturnType Return type of getTimestamp() is undeclared type \timestamp (Did you mean class \MWTimestamp)
  • includes/MathObject.php:203 PhanUndeclaredTypeParameter Parameter $timestamp has undeclared type \timestamp (Did you mean class \MWTimestamp)
  • includes/MathObject.php:211 PhanUndeclaredTypeReturnType Return type of getLog() is undeclared type \log
  • includes/MathObject.php:212 PhanTypeMismatchReturn Returning type string but getLog() is declared to return \log
  • includes/MathObject.php:319 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathObject.php:328 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathObject.php:423 PhanTypeMissingReturn Method \MathObject::render is declared to return bool in phpdoc but has no return value
  • includes/MathObject.php:489 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathObject.php:520 PhanTypeMismatchReturn Returning type false but getTexInfo() is declared to return \MathoidDriver
  • includes/MathObject.php:561 PhanTypeInvalidLeftOperandOfNumericOp Invalid operator: left operand of * is string (expected number)
  • includes/MathObject.php:563 PhanTypeInvalidLeftOperandOfNumericOp Invalid operator: left operand of * is string (expected number)
  • includes/MathObject.php:602 PhanUndeclaredTypeParameter Parameter $renderingTime has undeclared type \long
  • includes/MathQueryObject.php:8 PhanTypeMismatchProperty Assigning false to property but \MathQueryObject->queryID is int
  • includes/MathQueryObject.php:117 PhanUndeclaredTypeReturnType Return type of newQueryFromEquationRow() is undeclared type \self
  • includes/MathQueryObject.php:156 PhanTypeMismatchReturn Returning type false but getCQuery() is declared to return string
  • includes/MathQueryObject.php:168 PhanTypeMismatchReturn Returning type false but getPQuery() is declared to return string
  • includes/MathQueryObject.php:235 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:95 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:98 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:106 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:136 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:205 PhanPossiblyUndeclaredVariable Variable $eid is possibly undeclared
  • includes/MathSearchHooks.php:207 PhanPossiblyUndeclaredVariable Variable $eid is possibly undeclared
  • includes/MathSearchHooks.php:235 PhanTypeMismatchArgumentInternal Argument 2 ($subject) is $Result of type null but \preg_match() takes string
  • includes/MathSearchHooks.php:237 PhanTypeMismatchArgumentInternal Argument 3 ($subject) is $Result of type null but \str_replace() takes array|string
  • includes/MathSearchHooks.php:256 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:276 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:291 PhanTypeMismatchReturn Returning type '' but mQueryTagHook() is declared to return array
  • includes/MathSearchHooks.php:293 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:313 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:315 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:343 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:364 PhanTypeMismatchArgument Argument 1 ($id) is $id of type null but \MathSearchHooks::setMathId() takes int defined at includes/MathSearchHooks.php:126
  • includes/MathSearchHooks.php:380 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:384 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchTerm.php:97 PhanTypeSuspiciousNonTraversableForeach Class \Status was passed to foreach, but it does not extend Traversable. This may be intentional, because some of that class's declared properties are accessible from this context. (This check excludes dynamic properties)
  • includes/MathoidDriver.php:118 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathoidDriver.php:157 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathosphereDriver.php:124 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathosphereDriver.php:163 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MlpEvalForm.php:116 SecurityCheck-XSS HTMLForm option label needs escaping (Maybe false positive as could not determine if it was key or value that is unescaped) (Caused by: includes/MlpEvalForm.php +111; includes/MlpEvalForm.php +109)
  • includes/MlpEvalForm.php:144 SecurityCheck-XSS HTMLForm option label needs escaping (Maybe false positive as could not determine if it was key or value that is unescaped) (Caused by: includes/MlpEvalForm.php +139; includes/MlpEvalForm.php +138)
  • includes/MlpEvalForm.php:199 PhanTypeMismatchArgument Argument 1 ($data) is 'pgRst' of type 'pgRst' but \MlpEvalForm::addButton() takes array{name:string,value:string,label-message?:\MessageSpecifier|string|string[],label?:string,label-raw?:string,id?:string,attribs?:array,flags?:string|string[],framed?:bool} defined at ../../includes/htmlform/HTMLForm.php:995
  • includes/MlpEvalForm.php:201 PhanTypeMismatchArgument Argument 1 ($data) is 'fRst' of type 'fRst' but \MlpEvalForm::addButton() takes array{name:string,value:string,label-message?:\MessageSpecifier|string|string[],label?:string,label-raw?:string,id?:string,attribs?:array,flags?:string|string[],framed?:bool} defined at ../../includes/htmlform/HTMLForm.php:995
  • includes/WikidataDriver.php:28 PhanUndeclaredMethod Call to undeclared method \MediaWiki\Http\HttpRequestFactory::createMultiClient
  • includes/WikidataDriver.php:53 PhanTypeExpectedObjectPropAccess Expected an object instance when accessing an instance property, but saw an expression $this->data with type non-empty-array<mixed,mixed>|non-empty-list<mixed>|true
  • includes/content/ContentMathFormatter.php:47 PhanUndeclaredClassConstant Reference to constant FORMAT_PLAIN from undeclared class \Wikibase\Lib\Formatters\SnakFormatter
  • includes/content/ContentMathFormatter.php:49 PhanUndeclaredClassConstant Reference to constant FORMAT_WIKI from undeclared class \Wikibase\Lib\Formatters\SnakFormatter
  • includes/content/ContentMathFormatter.php:61 PhanUndeclaredClassConstant Reference to constant FORMAT_HTML_DIFF from undeclared class \Wikibase\Lib\Formatters\SnakFormatter
  • includes/content/ContentMathMLRdfBuilder.php:7 PhanUndeclaredInterface Class implements undeclared interface \Wikibase\Repo\Rdf\ValueSnakRdfBuilder
  • includes/content/ContentMathValidator.php:41 PhanTypeMismatchArgument Argument 1 ($text) is null of type null but \ValueValidators\Error::newError() takes string defined at ../../vendor/data-values/interfaces/src/ValueValidators/Error.php:33
  • includes/content/ContentMathWikidataHook.php:29 PhanUndeclaredClassMethod Call to method getDefaultValidatorBuilders from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/content/ContentMathWikidataHook.php:39 PhanUndeclaredClassMethod Call to method getDefaultInstance from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/content/ContentMathWikidataHook.php:40 PhanUndeclaredClassMethod Call to method __construct from undeclared class \Wikibase\Repo\Parsers\WikibaseStringValueNormalizer
  • includes/content/ContentMathWikidataHook.php:41 PhanTypeMismatchArgument Argument 1 ($normalizer) is $normalizer of type \Wikibase\Repo\Parsers\WikibaseStringValueNormalizer but \ValueParsers\StringParser::__construct() takes ?\ValueParsers\Normalizers\StringNormalizer defined at ../../vendor/data-values/common/src/ValueParsers/StringParser.php:28
  • includes/content/ContentMathWikidataHook.php:51 PhanUndeclaredTypeParameter Parameter $vocab has undeclared type \Wikibase\Repo\Rdf\RdfVocabulary
  • includes/content/ContentMathWikidataHook.php:53 PhanUndeclaredTypeParameter Parameter $tracker has undeclared type \Wikibase\Repo\Rdf\EntityMentionListener
  • includes/content/ContentMathWikidataHook.php:54 PhanUndeclaredTypeParameter Parameter $dedupe has undeclared type \Wikibase\Repo\Rdf\DedupeBag
  • includes/engines/MathEngineBaseX.php:66 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineBaseX.php:93 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineMws.php:37 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:39 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:139 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:156 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:161 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:173 PhanUndeclaredProperty Reference to undeclared property \MathEngineRest->postData
  • includes/engines/MathEngineRest.php:176 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:178 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialDisplayTopics.php:77 SecurityCheck-SQLInjection Calling method \SpecialDisplayTopics::displayOverview() in \SpecialDisplayTopics::displayTopic that outputs using tainted argument $[arg #1]. (Caused by: includes/specials/SpecialDisplayTopics.php +48) (Caused by: includes/specials/SpecialDisplayTopics.php +72)
  • includes/specials/SpecialDisplayTopics.php:78 SecurityCheck-SQLInjection Calling method \SpecialDisplayTopics::printMostFrequentRuns() in \SpecialDisplayTopics::displayTopic that outputs using tainted argument $qId. (Caused by: includes/specials/SpecialDisplayTopics.php +131) (Caused by: includes/specials/SpecialDisplayTopics.php +72)
  • includes/specials/SpecialLaTeXTranslator.php:41 PhanTypeMissingReturn Method \SpecialLaTeXTranslator::processInput is declared to return bool in phpdoc but has no return value
  • includes/specials/SpecialMathDebug.php:23 PhanTypeMismatchArgument Argument 2 ($default) is 0 of type 0 but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/specials/SpecialMathDebug.php:24 PhanTypeMismatchArgument Argument 2 ($default) is 10 of type 10 but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $action. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +26)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $length. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +24)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $offset. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +23)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $page. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +25)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $purge. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +27)
  • includes/specials/SpecialMathDebug.php:43 PhanTypeMismatchArgument Argument 1 ($offset) is $offset of type null|string but \SpecialMathDebug::generateParserTests() takes int defined at includes/specials/SpecialMathDebug.php:155
  • includes/specials/SpecialMathDebug.php:43 PhanTypeMismatchArgument Argument 2 ($length) is $length of type null|string but \SpecialMathDebug::generateParserTests() takes int defined at includes/specials/SpecialMathDebug.php:155
  • includes/specials/SpecialMathDebug.php:99 PhanTypeMismatchArgument Argument 1 ($from_lines) is [$stringA] of type array{0:bool} but \Diff::__construct() takes string[] defined at ../../includes/diff/Diff.php:53
  • includes/specials/SpecialMathDebug.php:99 PhanTypeMismatchArgument Argument 2 ($to_lines) is [$stringB] of type array{0:bool} but \Diff::__construct() takes string[] defined at ../../includes/diff/Diff.php:53
  • includes/specials/SpecialMathDebug.php:104 PhanUndeclaredMethod Call to undeclared method \MathLaTeXML::getPostValue
  • includes/specials/SpecialMathDebug.php:106 PhanUndeclaredMethod Call to undeclared method \MathLaTeXML::getPostValue
  • includes/specials/SpecialMathDebug.php:111 PhanTypeMismatchArgumentInternal Argument 2 ($str) is $stringA of type bool but \explode() takes string
  • includes/specials/SpecialMathDebug.php:112 PhanTypeMismatchArgumentInternal Argument 2 ($str) is $stringB of type bool but \explode() takes string
  • includes/specials/SpecialMathDebug.php:206 PhanTypeMismatchArgument Argument 3 ($mode) is $modeInt of type int but \MathRenderer::getRenderer() takes string defined at ../../extensions/Math/src/MathRenderer.php:152
  • includes/specials/SpecialMathDebug.php:211 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathDownloadResult.php:47 PhanTypeSuspiciousStringExpression Suspicious type bool|false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/specials/SpecialMathDownloadResult.php:48 SecurityCheck-XSS Echoing expression that was not html escaped (Caused by: includes/specials/SpecialMathDownloadResult.php +26; includes/specials/SpecialMathDownloadResult.php +23; includes/specials/SpecialMathDownloadResult.php +22; includes/specials/SpecialMathDownloadResult.php +21; includes/specials/SpecialMathDownloa)
  • includes/specials/SpecialMathIndex.php:77 PhanUndeclaredClassMethod Call to method __construct from undeclared class \CreateMathIndex
  • includes/specials/SpecialMathIndex.php:78 PhanUndeclaredClassMethod Call to method loadParamsAndArgs from undeclared class \CreateMathIndex
  • includes/specials/SpecialMathIndex.php:81 PhanUndeclaredClassMethod Call to method execute from undeclared class \CreateMathIndex
  • includes/specials/SpecialMathSearch.php:231 PhanTypeMismatchArgumentInternal Argument 2 ($mode) is true of type true but \count() takes int
  • includes/specials/SpecialMathSearch.php:250 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathSearch.php:258 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathSearch.php:278 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathSearch.php:313 PhanTypeMismatchReturnNullable Returning type ?\DOMNode but getElementById() is declared to return \DOMElement (expected returned value to be non-nullable)
  • includes/specials/SpecialMathSearch.php:356 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathSearch.php:383 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathSearch.php:408 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMlpEval.php:189 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMlpEval.php:195 PhanImpossibleTypeComparison Impossible attempt to check if $title of type \Title is identical to null of type null
  • includes/specials/SpecialMlpEval.php:241 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMlpEval.php:406 PhanTypeMismatchArgument Argument 3 ($formula) is $this->getSvgRenderingAsHtmlFragment() of type string but \SpecialMlpEval::printMathObjectInContext() takes bool|false defined at includes/specials/SpecialMlpEval.php:602
  • includes/specials/SpecialMlpEval.php:410 PhanTypeMismatchArgument Argument 4 ($filter) is 'SpecialMlpEval::removeSVGs' of type 'SpecialMlpEval::removeSVGs' but \SpecialMlpEval::printMathObjectInContext() takes bool|false defined at includes/specials/SpecialMlpEval.php:602
  • includes/specials/SpecialMlpEval.php:411 PhanTypeMismatchArgument Argument 3 ($formula) is $this->getMathMLRenderingAsHtmlFragment() of type string but \SpecialMlpEval::printMathObjectInContext() takes bool|false defined at includes/specials/SpecialMlpEval.php:602
  • includes/specials/SpecialMlpEval.php:539 PhanTypeMismatchArgument Argument 1 ($tex) is $tex of type false but \SpecialMlpEval::getMathMlRenderer() takes string defined at includes/specials/SpecialMlpEval.php:656
  • includes/specials/SpecialMlpEval.php:546 PhanTypeMismatchArgument Argument 1 ($tex) is $tex of type false but \SpecialMlpEval::getMathMlRenderer() takes string defined at includes/specials/SpecialMlpEval.php:656
  • includes/specials/SpecialMlpEval.php:616 PhanTypeMismatchArgument Argument 1 ($text) is $formula of type true but \OutputPage::addHTML() takes string defined at ../../includes/OutputPage.php:1597
  • includes/specials/SpecialMlpEval.php:627 PhanTypeMismatchArgumentInternal Argument 1 ($function) is $filter of type true but \call_user_func_array() takes callable
  • includes/specials/SpecialUploadResult.php:185 SecurityCheck-XSS Calling method \SpecialUploadResult::printResultRow() in \SpecialUploadResult::processInput that outputs using tainted argument $result. (Caused by: includes/specials/SpecialUploadResult.php +210) (Caused by: includes/specials/SpecialUploadResult.php +184)
  • includes/specials/SpecialUploadResult.php:255 SecurityCheck-XSS Calling method \OutputPage::addHTML() in \SpecialUploadResult::displayFeedback that outputs using tainted argument $[arg #1]. (Caused by: Builtin-\OutputPage::addHTML) (Caused by: includes/specials/SpecialUploadResult.php +254; includes/specials/SpecialUploadResult.php +252; includes/specials/SpecialUploadResult.php +253; includes/specials/SpecialUploadResult.php +252)
  • includes/specials/SpecialUploadResult.php:306 SecurityCheck-XSS Calling method \OutputPage::addHTML() in \SpecialUploadResult::displayFormulaFeedback that outputs using tainted argument $[arg #1]. (Caused by: Builtin-\OutputPage::addHTML) (Caused by: includes/specials/SpecialUploadResult.php +305; includes/specials/SpecialUploadResult.php +252; includes/specials/SpecialUploadResult.php +303; includes/specials/SpecialUploadResult.php +304; includes/specials/SpecialUploadResult.php +252; includes/specials/SpecialUploadResult.php +303)
  • includes/stackexchange/DumpReader.php:43 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/DumpReader.php:65 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:139 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:144 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:147 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:169 PhanUndeclaredClassMethod Call to method getDefaultInstance from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/stackexchange/Field.php:200 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:206 PhanTypeVoidAssignment Cannot assign void return value
  • includes/stackexchange/Field.php:207 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:208 PhanTypeSuspiciousStringExpression Suspicious type void of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/stackexchange/Field.php:213 PhanTypeMismatchReturn Returning type array{}|non-empty-list<mixed> but getSnaks() is declared to return \Wikibase\DataModel\Snak\PropertyValueSnak
  • includes/stackexchange/Field.php:245 PhanTypePossiblyInvalidDimOffset Possibly invalid offset 'externalIdType' of array type array{propertyId?:'P10'|'P14'|'P16'|'P17'|'P18'|'P19'|'P20'|'P21'|'P22'|'P23'|'P24'|'P25'|'P26'|'P27'|'P28'|'P5'|'P6'|'P7'|'P9',externalIdType?:1|2,map?:array{1:'887',2:'888'},references?:'posts.Id'|'users.Id',excludeFromWb?:true,separator?:'/\x28&\x5blg\x5dt;\x7c\x3c\x7c\x3e\x7c\x2c\x29/'}
  • includes/stackexchange/Field.php:279 PhanTypeMismatchReturn Returning type array<int,string>|int|string|true but getExternalIdType() is declared to return null
  • includes/stackexchange/Formula.php:41 PhanUndeclaredClassMethod Call to method getDefaultInstance from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/stackexchange/IdMap.php:24 PhanUndeclaredClassMethod Call to method getDefaultInstance from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/stackexchange/LineReaderJob.php:29 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Row.php:32 PhanTypeMismatchArgumentInternal Argument 1 ($error_handler) is (unknown) of type Closure(mixed,mixed,mixed,mixed):void but \set_error_handler() takes callable(int,string):bool|callable(int,string,string):bool|callable(int,string,string,int):bool|callable(int,string,string,int,array):bool|null
  • includes/stackexchange/Row.php:67 PhanUndeclaredClassMethod Call to method getDefaultInstance from undeclared class \Wikibase\Repo\WikibaseRepo
  • includes/stackexchange/Row.php:94 PhanTypeMismatchArgument Argument 2 ($extIdType) is $id->getExternalIdType() of type null but \MathSearch\StackExchange\IdMap::addQid() takes int defined at includes/stackexchange/IdMap.php:48
  • includes/stackexchange/Row.php:110 PhanTypeNoAccessiblePropertiesForeach Class \Wikibase\DataModel\Snak\PropertyValueSnak was passed to foreach, but it does not extend Traversable and none of its declared properties are accessible from this context. (This check excludes dynamic properties)
  • includes/stackexchange/Row.php:133 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • maintenance/BatchImport.php:67 PhanTypeMismatchArgument Argument 1 ($csvFile) is fopen($file, 'r') of type false|resource but \ImportCsv::execute() takes string defined at includes/ImportCsv.php:53
  • maintenance/BatchImport.php:67 PhanTypeMismatchArgument Argument 2 ($runId) is $matches['runName'] of type string but \ImportCsv::execute() takes int|null defined at includes/ImportCsv.php:53
  • maintenance/CalculateDistances.php:65 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CalculateDistances.php:66 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CalculateDistances.php:70 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $conds. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CalculateDistances.php:71 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $conds. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CreateBaseXMathTable.php:35 PhanUndeclaredTypeProperty Property \CreateBaseXMathTable->session has undeclared type \BaseXSession
  • maintenance/CreateBaseXMathTable.php:91 PhanUndeclaredClassMethod Call to method execute from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:107 PhanUndeclaredClassMethod Call to method __construct from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:109 PhanUndeclaredClassMethod Call to method execute from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:111 PhanUndeclaredClassMethod Call to method execute from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:117 PhanUndeclaredClassMethod Call to method close from undeclared class \BaseXSession
  • maintenance/CreateDB2MathTable.php:49 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMd5 (Did you mean expr->getDB())
  • maintenance/CreateDB2MathTable.php:50 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getTex
  • maintenance/CreateDB2MathTable.php:53 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMathml
  • maintenance/CreateDB2MathTable.php:56 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMd5 (Did you mean expr->getDB())
  • maintenance/CreateDB2MathTable.php:57 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getTex
  • maintenance/CreateDB2MathTable.php:60 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMathml
  • maintenance/ExportCache.php:98 SecurityCheck-SQLInjection Calling method \ExportMathCache::getMathTagsFromDatabase() in \ExportMathCache::execute that outputs using tainted argument $table. (Caused by: maintenance/ExportCache.php +70) (Caused by: maintenance/ExportCache.php +91)
  • maintenance/ExtractFeatures.php:69 PhanTypeSuspiciousStringExpression Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • maintenance/ExtractFeatures.php:91 PhanTypeInvalidRightOperandOfAdd Invalid operator: right operand of += is \number (expected array or number)
  • maintenance/ExtractFeatures.php:91 PhanTypeMismatchArgument Argument 2 ($pText) is $revtext of type \MediaWiki\Revision\RevisionRecord|\MediaWiki\Storage\RevisionRecord but \ExtractFeatures::doUpdate() takes string defined at maintenance/ExtractFeatures.php:140
  • maintenance/ExtractFeatures.php:140 PhanParamReqAfterOpt Required argument follows optional
  • maintenance/ExtractFeatures.php:140 PhanUndeclaredTypeReturnType Return type of doUpdate() is undeclared type \number
  • maintenance/ExtractFeatures.php:153 PhanTypeMismatchReturn Returning type non-zero-int but doUpdate() is declared to return \number
  • maintenance/ExtractFeatures.php:155 PhanTypeMismatchReturn Returning type 0 but doUpdate() is declared to return \number
  • maintenance/GenerateFeatureTable.php:81 PhanTypeInvalidRightOperandOfAdd Invalid operator: right operand of += is \number (expected array or number)
  • maintenance/GenerateFeatureTable.php:98 PhanUndeclaredTypeReturnType Return type of doUpdate() is undeclared type \number
  • maintenance/GenerateFeatureTable.php:119 PhanTypeMismatchReturn Returning type 0 but doUpdate() is declared to return \number
  • maintenance/GenerateWorkload.php:59 PhanUndeclaredMethod Call to undeclared method \GenerateWorkload::saveToDatabase
  • maintenance/GenerateWorkload.php:60 PhanUndeclaredMethod Call to undeclared method \GenerateWorkload::exportTexDocument
  • maintenance/GenerateWorkload.php:81 PhanTypeMismatchArgument Argument 3 ($conds) is true of type true but \Wikimedia\Rdbms\DBConnRef::select() takes array|string defined at ../../includes/libs/rdbms/database/DBConnRef.php:309
  • maintenance/ImportStackExchangeDump.php:69 PhanTypeMismatchArgument Argument 1 ($file) is $file of type \DirectoryIterator|\FilesystemIterator|\Iterator|\SeekableIterator|\SplFileInfo|\Traversable|iterable|string but \MathSearch\StackExchange\DumpReader::__construct() takes \SplFileObject defined at includes/stackexchange/DumpReader.php:30
  • maintenance/IndexBase.php:98 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \IndexBase::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select)
  • maintenance/IndexBase.php:99 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \IndexBase::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select)
  • maintenance/IndexBase.php:116 PhanTypeMismatchArgumentInternalProbablyReal Argument 2 ($mode) is '0755' of type '0755' but \mkdir() takes int
  • maintenance/MathPerformance.php:83 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionExport that outputs using tainted argument $hash. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +82)
  • maintenance/MathPerformance.php:83 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionExport that outputs using tainted argument $tex. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +81)
  • maintenance/MathPerformance.php:111 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\IDatabase::selectField() in \MathPerformance::getFormulae that outputs using tainted argument $table. (Caused by: Builtin-\Wikimedia\Rdbms\IDatabase::selectField) (Caused by: maintenance/MathPerformance.php +106)
  • maintenance/MathPerformance.php:118 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\IDatabase::select() in \MathPerformance::getFormulae that outputs using tainted argument $table. (Caused by: Builtin-\Wikimedia\Rdbms\IDatabase::select) (Caused by: maintenance/MathPerformance.php +106)
  • maintenance/MathPerformance.php:131 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionBenchmark that outputs using tainted argument $hash. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +130)
  • maintenance/MathPerformance.php:131 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionBenchmark that outputs using tainted argument $tex. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +129)
  • maintenance/MathPerformance.php:134 PhanTypeMismatchArgument Argument 2 ($type) is false of type false but \MathRestbaseInterface::__construct() takes string defined at ../../extensions/Math/src/MathRestbaseInterface.php:33
  • maintenance/MathPerformance.php:206 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionPng that outputs using tainted argument $hash. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +204)
  • maintenance/MathPerformance.php:206 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionPng that outputs using tainted argument $tex. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +203)
  • maintenance/MathPerformance.php:222 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • maintenance/MathPerformance.php:229 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • maintenance/MathPerformance.php:245 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • maintenance/MathPerformance.php:260 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • maintenance/MathPerformance.php:282 PhanTypeMismatchArgumentInternalProbablyReal Argument 2 ($mode) is '0755' of type '0755' but \mkdir() takes int
  • maintenance/QueryEval.php:37 PhanTypeMismatchArgument Argument 1 ($db) is $db of type \IDatabase|\Wikimedia\Rdbms\IDatabase|string but \MySqlFunctionDropper::__construct() takes \Wikimedia\Rdbms\IMaintainableDatabase defined at ../../includes/installer/DatabaseUpdater.php:112
  • maintenance/QueryEval.php:49 PhanTypeMissingReturn Method \MySqlFunctionDropper::dropFunction is declared to return bool in phpdoc but has no return value
  • maintenance/QueryEval.php:73 PhanTypeMismatchArgument Argument 1 ($db) is $dbw of type \DBConnRef|\IDatabase|\Wikimedia\Rdbms\DBConnRef|\Wikimedia\Rdbms\IDatabase|string but \DatabaseUpdater::newForDB() takes \Wikimedia\Rdbms\IMaintainableDatabase defined at ../../includes/installer/DatabaseUpdater.php:186
  • maintenance/UpdateMath.php:136 PhanTypeInvalidRightOperandOfAdd Invalid operator: right operand of += is \number (expected array or number)
  • maintenance/UpdateMath.php:136 PhanTypeMismatchArgument Argument 2 ($pText) is $revText of type \MediaWiki\Revision\RevisionRecord|\MediaWiki\Storage\RevisionRecord but \UpdateMath::doUpdate() takes string defined at maintenance/UpdateMath.php:157
  • maintenance/UpdateMath.php:157 PhanUndeclaredTypeReturnType Return type of doUpdate() is undeclared type \number
  • maintenance/UpdateMath.php:180 PhanParamTooMany Call with 1 arg(s) to \MathRenderer::render() which only takes 0 arg(s) defined at ../../extensions/Math/src/MathRenderer.php:201
  • maintenance/UpdateMath.php:202 PhanParamTooMany Call with 1 arg(s) to \MathRenderer::writeCache() which only takes 0 arg(s) defined at ../../extensions/Math/src/MathRenderer.php:446
  • maintenance/UpdateMath.php:209 PhanTypeMismatchArgument Argument 1 ($id) is $eId of type null but \MathSearchHooks::setMathId() takes int defined at includes/MathSearchHooks.php:126
  • maintenance/UpdateMath.php:215 PhanPossiblyUndeclaredVariable Variable $eId is possibly undeclared
  • maintenance/UpdateMath.php:224 PhanTypeMismatchReturn Returning type non-zero-int but doUpdate() is declared to return \number
  • maintenance/UpdateMath.php:226 PhanTypeMismatchReturn Returning type 0 but doUpdate() is declared to return \number

running this tests locally takes way too long >15min (without xhprof, xdebug, with wikidata)

  • includes/FormulaInfo.php:24 PhanParamSignatureMismatch Declaration of function execute(\unknown $par) should be compatible with function execute(null|string $subPage) defined in ../../includes/specialpage/SpecialPage.php:621
  • includes/FormulaInfo.php:24 PhanUndeclaredTypeParameter Parameter $par has undeclared type \unknown
  • includes/FormulaInfo.php:28 PhanTypeMismatchArgument Argument 2 ($default) is false of type false but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/FormulaInfo.php:37 PhanTypeMismatchArgument Argument 1 ($oldID) is $pid of type string but \FormulaInfo::DisplayInfo() takes int defined at includes/FormulaInfo.php:128
  • includes/FormulaInfo.php:114 PhanTypeArraySuspiciousNullable Suspicious array access to nullable array|bool|float|int|null|string
  • includes/FormulaInfo.php:117 PhanTypeArraySuspiciousNullable Suspicious array access to nullable array|bool|float|int|null|string
  • includes/FormulaInfo.php:150 PhanTypeMismatchArgument Argument 2 ($eid) is $eid of type string but \MathObject::constructformpage() takes int defined at includes/MathObject.php:80
  • includes/FormulaInfo.php:201 PhanTypeMismatchArgumentInternalProbablyReal Argument 2 ($quote_style) is 'status' of type 'status' but \htmlspecialchars() takes int
  • includes/FormulaInfo.php:201 PhanTypeMismatchArgumentInternal Argument 1 ($string) is $mo->getLog() of type \log but \htmlspecialchars() takes string
  • includes/FormulaInfo.php:210 PhanTypeSuspiciousStringExpression Suspicious type \timestamp of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/FormulaInfo.php:210 PhanTypeSuspiciousStringExpression Suspicious type bool of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/FormulaInfo.php:277 PhanParamTooMany Call with 1 arg(s) to \MathRenderer::render() which only takes 0 arg(s) defined at ../../extensions/Math/src/MathRenderer.php:201
  • includes/FormulaInfo.php:308 PhanParamTooMany Call with 1 arg(s) to \MathRenderer::render() which only takes 0 arg(s) defined at ../../extensions/Math/src/MathRenderer.php:201
  • includes/GetEquationsByQuery.php:22 PhanParamSignatureMismatch Declaration of function execute(\unknown $par) should be compatible with function execute(null|string $subPage) defined in ../../includes/specialpage/SpecialPage.php:621
  • includes/GetEquationsByQuery.php:22 PhanUndeclaredTypeParameter Parameter $par has undeclared type \unknown
  • includes/GetEquationsByQuery.php:77 SecurityCheck-XSS Calling method \OutputPage::addHTML() in \GetEquationsByQuery::execute that outputs using tainted argument $[arg #1]. (Caused by: Builtin-\OutputPage::addHTML) (Caused by: includes/GetEquationsByQuery.php +74)
  • includes/GetEquationsByQuery.php:80 PhanTypeMismatchArgument Argument 2 ($default) is false of type false but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/GetEquationsByQuery.php:84 PhanParamTooMany Call with 1 arg(s) to \MathRenderer::render() which only takes 0 arg(s) defined at ../../extensions/Math/src/MathRenderer.php:201
  • includes/GetEquationsByQuery.php:88 PhanTypeSuspiciousStringExpression Suspicious type bool of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/ImportCsv.php:17 PhanTypeMismatchProperty Assigning false to property but \ImportCsv->runId is int
  • includes/ImportCsv.php:55 PhanTypeMismatchArgument Argument 1 ($run) is $runId of type int|null but \ImportCsv::validateRunId() takes string defined at includes/ImportCsv.php:70
  • includes/ImportCsv.php:93 PhanTypeMismatchProperty Assigning false to property but \ImportCsv->runId is int
  • includes/ImportCsv.php:98 PhanTypeMismatchProperty Assigning false to property but \ImportCsv->runId is int
  • includes/ImportCsv.php:127 PhanTypeMismatchReturn Returning type string but importFromFile() is declared to return null
  • includes/ImportCsv.php:132 PhanTypeMismatchArgumentInternal Argument 1 ($fp) is $csv_file of type string but \fgetcsv() takes resource
  • includes/ImportCsv.php:138 PhanTypeMismatchArgumentInternal Argument 1 ($fp) is $csv_file of type string but \fgetcsv() takes resource
  • includes/ImportCsv.php:140 PhanTypeMismatchArgumentInternal Argument 1 ($fp) is $csv_file of type string but \fclose() takes resource
  • includes/ImportCsv.php:148 PhanTypeMismatchArgumentNullableInternal Argument 1 ($str1) is $table[0][0] of type ?string but \strncmp() takes string (expected type to be non-nullable)
  • includes/ImportCsv.php:149 PhanTypeMismatchArgumentNullableInternal Argument 1 ($str) is $table[0][0] of type ?string but \substr() takes string (expected type to be non-nullable)
  • includes/ImportCsv.php:216 PhanTypeMismatchReturn Returning type true but importFromArray() is declared to return null|string
  • includes/ImportCsv.php:278 PhanTypeMismatchArgument Argument 1 ($runID) is $this->runId of type false|int but \ImportCsv::deleteRun() takes string defined at includes/ImportCsv.php:292
  • includes/MathHighlighter.php:53 PhanCommentParamOutOfOrder Expected @param annotation for $tagPos to be before the @param annotation for $wikiText
  • includes/MathIdGenerator.php:162 PhanTypeArraySuspiciousNullable Suspicious array access to nullable ?array|?array<string,mixed>|?string
  • includes/MathIdGenerator.php:173 PhanTypeArraySuspiciousNullable Suspicious array access to nullable ?array|?array<string,mixed>|?string
  • includes/MathObject.php:13 PhanUndeclaredTypeProperty Property \MathObject->timestamp has undeclared type \timestamp (Did you mean class \MWTimestamp)
  • includes/MathObject.php:86 PhanTypeMismatchReturn Returning type \self|bool but constructformpage() is declared to return \MathObject
  • includes/MathObject.php:126 PhanUndeclaredTypeReturnType Return type of constructformpagerow() is undeclared type \self
  • includes/MathObject.php:195 PhanUndeclaredTypeReturnType Return type of getTimestamp() is undeclared type \timestamp (Did you mean class \MWTimestamp)
  • includes/MathObject.php:203 PhanUndeclaredTypeParameter Parameter $timestamp has undeclared type \timestamp (Did you mean class \MWTimestamp)
  • includes/MathObject.php:211 PhanUndeclaredTypeReturnType Return type of getLog() is undeclared type \log
  • includes/MathObject.php:212 PhanTypeMismatchReturn Returning type string but getLog() is declared to return \log
  • includes/MathObject.php:319 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathObject.php:328 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathObject.php:423 PhanTypeMissingReturn Method \MathObject::render is declared to return bool in phpdoc but has no return value
  • includes/MathObject.php:489 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathObject.php:520 PhanTypeMismatchReturn Returning type false but getTexInfo() is declared to return \MathoidDriver
  • includes/MathObject.php:561 PhanTypeInvalidLeftOperandOfNumericOp Invalid operator: left operand of * is string (expected number)
  • includes/MathObject.php:563 PhanTypeInvalidLeftOperandOfNumericOp Invalid operator: left operand of * is string (expected number)
  • includes/MathObject.php:602 PhanUndeclaredTypeParameter Parameter $renderingTime has undeclared type \long
  • includes/MathQueryObject.php:8 PhanTypeMismatchProperty Assigning false to property but \MathQueryObject->queryID is int
  • includes/MathQueryObject.php:117 PhanUndeclaredTypeReturnType Return type of newQueryFromEquationRow() is undeclared type \self
  • includes/MathQueryObject.php:156 PhanTypeMismatchReturn Returning type false but getCQuery() is declared to return string
  • includes/MathQueryObject.php:168 PhanTypeMismatchReturn Returning type false but getPQuery() is declared to return string
  • includes/MathQueryObject.php:235 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:95 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:98 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:106 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:136 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:205 PhanPossiblyUndeclaredVariable Variable $eid is possibly undeclared
  • includes/MathSearchHooks.php:207 PhanPossiblyUndeclaredVariable Variable $eid is possibly undeclared
  • includes/MathSearchHooks.php:235 PhanTypeMismatchArgumentInternal Argument 2 ($subject) is $Result of type null but \preg_match() takes string
  • includes/MathSearchHooks.php:237 PhanTypeMismatchArgumentInternal Argument 3 ($subject) is $Result of type null but \str_replace() takes array|string
  • includes/MathSearchHooks.php:256 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:276 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:291 PhanTypeMismatchReturn Returning type '' but mQueryTagHook() is declared to return array
  • includes/MathSearchHooks.php:293 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:313 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:315 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:343 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:364 PhanTypeMismatchArgument Argument 1 ($id) is $id of type null but \MathSearchHooks::setMathId() takes int defined at includes/MathSearchHooks.php:126
  • includes/MathSearchHooks.php:380 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchHooks.php:384 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathSearchTerm.php:97 PhanTypeSuspiciousNonTraversableForeach Class \Status was passed to foreach, but it does not extend Traversable. This may be intentional, because some of that class's declared properties are accessible from this context. (This check excludes dynamic properties)
  • includes/MathoidDriver.php:118 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathoidDriver.php:157 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathosphereDriver.php:124 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MathosphereDriver.php:163 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/MlpEvalForm.php:116 SecurityCheck-XSS HTMLForm option label needs escaping (Maybe false positive as could not determine if it was key or value that is unescaped) (Caused by: includes/MlpEvalForm.php +111; includes/MlpEvalForm.php +109)
  • includes/MlpEvalForm.php:144 SecurityCheck-XSS HTMLForm option label needs escaping (Maybe false positive as could not determine if it was key or value that is unescaped) (Caused by: includes/MlpEvalForm.php +139; includes/MlpEvalForm.php +138)
  • includes/MlpEvalForm.php:199 PhanTypeMismatchArgument Argument 1 ($data) is 'pgRst' of type 'pgRst' but \MlpEvalForm::addButton() takes array{name:string,value:string,label-message?:\MessageSpecifier|string|string[],label?:string,label-raw?:string,id?:string,attribs?:array,flags?:string|string[],framed?:bool} defined at ../../includes/htmlform/HTMLForm.php:995
  • includes/MlpEvalForm.php:201 PhanTypeMismatchArgument Argument 1 ($data) is 'fRst' of type 'fRst' but \MlpEvalForm::addButton() takes array{name:string,value:string,label-message?:\MessageSpecifier|string|string[],label?:string,label-raw?:string,id?:string,attribs?:array,flags?:string|string[],framed?:bool} defined at ../../includes/htmlform/HTMLForm.php:995
  • includes/WikidataDriver.php:28 PhanUndeclaredMethod Call to undeclared method \MediaWiki\Http\HttpRequestFactory::createMultiClient
  • includes/WikidataDriver.php:53 PhanTypeExpectedObjectPropAccess Expected an object instance when accessing an instance property, but saw an expression $this->data with type non-empty-array<mixed,mixed>|non-empty-list<mixed>|true
  • includes/content/ContentMathMLRdfBuilder.php:7 PhanUndeclaredInterface Class implements undeclared interface \Wikibase\Repo\Rdf\ValueSnakRdfBuilder
  • includes/content/ContentMathValidator.php:41 PhanTypeMismatchArgument Argument 1 ($text) is null of type null but \ValueValidators\Error::newError() takes string defined at ../../vendor/data-values/interfaces/src/ValueValidators/Error.php:33
  • includes/content/ContentMathWikidataHook.php:51 PhanUndeclaredTypeParameter Parameter $vocab has undeclared type \Wikibase\Repo\Rdf\RdfVocabulary
  • includes/content/ContentMathWikidataHook.php:53 PhanUndeclaredTypeParameter Parameter $tracker has undeclared type \Wikibase\Repo\Rdf\EntityMentionListener
  • includes/content/ContentMathWikidataHook.php:54 PhanUndeclaredTypeParameter Parameter $dedupe has undeclared type \Wikibase\Repo\Rdf\DedupeBag
  • includes/engines/MathEngineBaseX.php:66 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineBaseX.php:93 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineMws.php:37 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:39 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:139 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:156 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:161 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:173 PhanUndeclaredProperty Reference to undeclared property \MathEngineRest->postData
  • includes/engines/MathEngineRest.php:176 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/engines/MathEngineRest.php:178 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialDisplayTopics.php:77 SecurityCheck-SQLInjection Calling method \SpecialDisplayTopics::displayOverview() in \SpecialDisplayTopics::displayTopic that outputs using tainted argument $[arg #1]. (Caused by: includes/specials/SpecialDisplayTopics.php +48) (Caused by: includes/specials/SpecialDisplayTopics.php +72)
  • includes/specials/SpecialDisplayTopics.php:78 SecurityCheck-SQLInjection Calling method \SpecialDisplayTopics::printMostFrequentRuns() in \SpecialDisplayTopics::displayTopic that outputs using tainted argument $qId. (Caused by: includes/specials/SpecialDisplayTopics.php +131) (Caused by: includes/specials/SpecialDisplayTopics.php +72)
  • includes/specials/SpecialLaTeXTranslator.php:41 PhanTypeMissingReturn Method \SpecialLaTeXTranslator::processInput is declared to return bool in phpdoc but has no return value
  • includes/specials/SpecialMathDebug.php:23 PhanTypeMismatchArgument Argument 2 ($default) is 0 of type 0 but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/specials/SpecialMathDebug.php:24 PhanTypeMismatchArgument Argument 2 ($default) is 10 of type 10 but \WebRequest::getVal() takes null|string defined at ../../includes/WebRequest.php:507
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $action. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +26)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $length. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +24)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $offset. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +23)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $page. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +25)
  • includes/specials/SpecialMathDebug.php:33 SecurityCheck-XSS Calling method \SpecialMathDebug::displayButtons() in \SpecialMathDebug::execute that outputs using tainted argument $purge. (Caused by: includes/specials/SpecialMathDebug.php +56) (Caused by: includes/specials/SpecialMathDebug.php +27)
  • includes/specials/SpecialMathDebug.php:43 PhanTypeMismatchArgument Argument 1 ($offset) is $offset of type null|string but \SpecialMathDebug::generateParserTests() takes int defined at includes/specials/SpecialMathDebug.php:155
  • includes/specials/SpecialMathDebug.php:43 PhanTypeMismatchArgument Argument 2 ($length) is $length of type null|string but \SpecialMathDebug::generateParserTests() takes int defined at includes/specials/SpecialMathDebug.php:155
  • includes/specials/SpecialMathDebug.php:99 PhanTypeMismatchArgument Argument 1 ($from_lines) is [$stringA] of type array{0:bool} but \Diff::__construct() takes string[] defined at ../../includes/diff/Diff.php:53
  • includes/specials/SpecialMathDebug.php:99 PhanTypeMismatchArgument Argument 2 ($to_lines) is [$stringB] of type array{0:bool} but \Diff::__construct() takes string[] defined at ../../includes/diff/Diff.php:53
  • includes/specials/SpecialMathDebug.php:104 PhanUndeclaredMethod Call to undeclared method \MathLaTeXML::getPostValue
  • includes/specials/SpecialMathDebug.php:106 PhanUndeclaredMethod Call to undeclared method \MathLaTeXML::getPostValue
  • includes/specials/SpecialMathDebug.php:111 PhanTypeMismatchArgumentInternal Argument 2 ($str) is $stringA of type bool but \explode() takes string
  • includes/specials/SpecialMathDebug.php:112 PhanTypeMismatchArgumentInternal Argument 2 ($str) is $stringB of type bool but \explode() takes string
  • includes/specials/SpecialMathDebug.php:206 PhanTypeMismatchArgument Argument 3 ($mode) is $modeInt of type int but \MathRenderer::getRenderer() takes string defined at ../../extensions/Math/src/MathRenderer.php:152
  • includes/specials/SpecialMathDebug.php:211 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathDownloadResult.php:47 PhanTypeSuspiciousStringExpression Suspicious type bool|false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/specials/SpecialMathDownloadResult.php:48 SecurityCheck-XSS Echoing expression that was not html escaped (Caused by: includes/specials/SpecialMathDownloadResult.php +26; includes/specials/SpecialMathDownloadResult.php +23; includes/specials/SpecialMathDownloadResult.php +22; includes/specials/SpecialMathDownloadResult.php +21; includes/specials/SpecialMathDownloa)
  • includes/specials/SpecialMathIndex.php:77 PhanUndeclaredClassMethod Call to method __construct from undeclared class \CreateMathIndex
  • includes/specials/SpecialMathIndex.php:78 PhanUndeclaredClassMethod Call to method loadParamsAndArgs from undeclared class \CreateMathIndex
  • includes/specials/SpecialMathIndex.php:81 PhanUndeclaredClassMethod Call to method execute from undeclared class \CreateMathIndex
  • includes/specials/SpecialMathSearch.php:231 PhanTypeMismatchArgumentInternal Argument 2 ($mode) is true of type true but \count() takes int
  • includes/specials/SpecialMathSearch.php:250 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathSearch.php:258 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathSearch.php:278 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathSearch.php:313 PhanTypeMismatchReturnNullable Returning type ?\DOMNode but getElementById() is declared to return \DOMElement (expected returned value to be non-nullable)
  • includes/specials/SpecialMathSearch.php:356 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathSearch.php:383 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMathSearch.php:408 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMlpEval.php:189 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMlpEval.php:195 PhanImpossibleTypeComparison Impossible attempt to check if $title of type \Title is identical to null of type null
  • includes/specials/SpecialMlpEval.php:241 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/specials/SpecialMlpEval.php:406 PhanTypeMismatchArgument Argument 3 ($formula) is $this->getSvgRenderingAsHtmlFragment() of type string but \SpecialMlpEval::printMathObjectInContext() takes bool|false defined at includes/specials/SpecialMlpEval.php:602
  • includes/specials/SpecialMlpEval.php:410 PhanTypeMismatchArgument Argument 4 ($filter) is 'SpecialMlpEval::removeSVGs' of type 'SpecialMlpEval::removeSVGs' but \SpecialMlpEval::printMathObjectInContext() takes bool|false defined at includes/specials/SpecialMlpEval.php:602
  • includes/specials/SpecialMlpEval.php:411 PhanTypeMismatchArgument Argument 3 ($formula) is $this->getMathMLRenderingAsHtmlFragment() of type string but \SpecialMlpEval::printMathObjectInContext() takes bool|false defined at includes/specials/SpecialMlpEval.php:602
  • includes/specials/SpecialMlpEval.php:539 PhanTypeMismatchArgument Argument 1 ($tex) is $tex of type false but \SpecialMlpEval::getMathMlRenderer() takes string defined at includes/specials/SpecialMlpEval.php:656
  • includes/specials/SpecialMlpEval.php:546 PhanTypeMismatchArgument Argument 1 ($tex) is $tex of type false but \SpecialMlpEval::getMathMlRenderer() takes string defined at includes/specials/SpecialMlpEval.php:656
  • includes/specials/SpecialMlpEval.php:616 PhanTypeMismatchArgument Argument 1 ($text) is $formula of type true but \OutputPage::addHTML() takes string defined at ../../includes/OutputPage.php:1597
  • includes/specials/SpecialMlpEval.php:627 PhanTypeMismatchArgumentInternal Argument 1 ($function) is $filter of type true but \call_user_func_array() takes callable
  • includes/specials/SpecialUploadResult.php:185 SecurityCheck-XSS Calling method \SpecialUploadResult::printResultRow() in \SpecialUploadResult::processInput that outputs using tainted argument $result. (Caused by: includes/specials/SpecialUploadResult.php +210) (Caused by: includes/specials/SpecialUploadResult.php +184)
  • includes/specials/SpecialUploadResult.php:255 SecurityCheck-XSS Calling method \OutputPage::addHTML() in \SpecialUploadResult::displayFeedback that outputs using tainted argument $[arg #1]. (Caused by: Builtin-\OutputPage::addHTML) (Caused by: includes/specials/SpecialUploadResult.php +254; includes/specials/SpecialUploadResult.php +252; includes/specials/SpecialUploadResult.php +253; includes/specials/SpecialUploadResult.php +252)
  • includes/specials/SpecialUploadResult.php:306 SecurityCheck-XSS Calling method \OutputPage::addHTML() in \SpecialUploadResult::displayFormulaFeedback that outputs using tainted argument $[arg #1]. (Caused by: Builtin-\OutputPage::addHTML) (Caused by: includes/specials/SpecialUploadResult.php +305; includes/specials/SpecialUploadResult.php +252; includes/specials/SpecialUploadResult.php +303; includes/specials/SpecialUploadResult.php +304; includes/specials/SpecialUploadResult.php +252; includes/specials/SpecialUploadResult.php +303)
  • includes/stackexchange/DumpReader.php:43 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/DumpReader.php:65 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:139 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:144 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:147 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:200 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:206 PhanTypeVoidAssignment Cannot assign void return value
  • includes/stackexchange/Field.php:207 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Field.php:208 PhanTypeSuspiciousStringExpression Suspicious type void of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • includes/stackexchange/Field.php:213 PhanTypeMismatchReturn Returning type array{}|non-empty-list<\Wikibase\DataModel\Snak\Snak> but getSnaks() is declared to return \Wikibase\DataModel\Snak\PropertyValueSnak
  • includes/stackexchange/Field.php:245 PhanTypePossiblyInvalidDimOffset Possibly invalid offset 'externalIdType' of array type array{propertyId?:'P10'|'P14'|'P16'|'P17'|'P18'|'P19'|'P20'|'P21'|'P22'|'P23'|'P24'|'P25'|'P26'|'P27'|'P28'|'P5'|'P6'|'P7'|'P9',externalIdType?:1|2,map?:array{1:'887',2:'888'},references?:'posts.Id'|'users.Id',excludeFromWb?:true,separator?:'/\x28&\x5blg\x5dt;\x7c\x3c\x7c\x3e\x7c\x2c\x29/'}
  • includes/stackexchange/Field.php:279 PhanTypeMismatchReturn Returning type array<int,string>|int|string|true but getExternalIdType() is declared to return null
  • includes/stackexchange/LineReaderJob.php:29 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • includes/stackexchange/Row.php:32 PhanTypeMismatchArgumentInternal Argument 1 ($error_handler) is (unknown) of type Closure(mixed,mixed,mixed,mixed):void but \set_error_handler() takes callable(int,string):bool|callable(int,string,string):bool|callable(int,string,string,int):bool|callable(int,string,string,int,array):bool|null
  • includes/stackexchange/Row.php:94 PhanTypeMismatchArgument Argument 2 ($extIdType) is $id->getExternalIdType() of type null but \MathSearch\StackExchange\IdMap::addQid() takes int defined at includes/stackexchange/IdMap.php:48
  • includes/stackexchange/Row.php:110 PhanTypeNoAccessiblePropertiesForeach Class \Wikibase\DataModel\Snak\PropertyValueSnak was passed to foreach, but it does not extend Traversable and none of its declared properties are accessible from this context. (This check excludes dynamic properties)
  • includes/stackexchange/Row.php:133 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • maintenance/BatchImport.php:67 PhanTypeMismatchArgument Argument 1 ($csvFile) is fopen($file, 'r') of type false|resource but \ImportCsv::execute() takes string defined at includes/ImportCsv.php:53
  • maintenance/BatchImport.php:67 PhanTypeMismatchArgument Argument 2 ($runId) is $matches['runName'] of type string but \ImportCsv::execute() takes int|null defined at includes/ImportCsv.php:53
  • maintenance/CalculateDistances.php:65 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CalculateDistances.php:66 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CalculateDistances.php:70 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $conds. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CalculateDistances.php:71 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \CalculateDistances::execute that outputs using tainted argument $conds. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select) (Caused by: maintenance/CalculateDistances.php +60; maintenance/CalculateDistances.php +58; maintenance/CalculateDistances.php +62; maintenance/CalculateDistances.php +59)
  • maintenance/CreateBaseXMathTable.php:35 PhanUndeclaredTypeProperty Property \CreateBaseXMathTable->session has undeclared type \BaseXSession
  • maintenance/CreateBaseXMathTable.php:91 PhanUndeclaredClassMethod Call to method execute from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:107 PhanUndeclaredClassMethod Call to method __construct from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:109 PhanUndeclaredClassMethod Call to method execute from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:111 PhanUndeclaredClassMethod Call to method execute from undeclared class \BaseXSession
  • maintenance/CreateBaseXMathTable.php:117 PhanUndeclaredClassMethod Call to method close from undeclared class \BaseXSession
  • maintenance/CreateDB2MathTable.php:49 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMd5 (Did you mean expr->getDB())
  • maintenance/CreateDB2MathTable.php:50 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getTex
  • maintenance/CreateDB2MathTable.php:53 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMathml
  • maintenance/CreateDB2MathTable.php:56 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMd5 (Did you mean expr->getDB())
  • maintenance/CreateDB2MathTable.php:57 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getTex
  • maintenance/CreateDB2MathTable.php:60 PhanUndeclaredMethod Call to undeclared method \CreateDB2MathTable::getMathml
  • maintenance/ExportCache.php:98 SecurityCheck-SQLInjection Calling method \ExportMathCache::getMathTagsFromDatabase() in \ExportMathCache::execute that outputs using tainted argument $table. (Caused by: maintenance/ExportCache.php +70) (Caused by: maintenance/ExportCache.php +91)
  • maintenance/ExtractFeatures.php:69 PhanTypeSuspiciousStringExpression Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
  • maintenance/ExtractFeatures.php:91 PhanTypeInvalidRightOperandOfAdd Invalid operator: right operand of += is \number (expected array or number)
  • maintenance/ExtractFeatures.php:91 PhanTypeMismatchArgument Argument 2 ($pText) is $revtext of type \MediaWiki\Revision\RevisionRecord|\MediaWiki\Storage\RevisionRecord but \ExtractFeatures::doUpdate() takes string defined at maintenance/ExtractFeatures.php:140
  • maintenance/ExtractFeatures.php:140 PhanParamReqAfterOpt Required argument follows optional
  • maintenance/ExtractFeatures.php:140 PhanUndeclaredTypeReturnType Return type of doUpdate() is undeclared type \number
  • maintenance/ExtractFeatures.php:153 PhanTypeMismatchReturn Returning type non-zero-int but doUpdate() is declared to return \number
  • maintenance/ExtractFeatures.php:155 PhanTypeMismatchReturn Returning type 0 but doUpdate() is declared to return \number
  • maintenance/GenerateFeatureTable.php:81 PhanTypeInvalidRightOperandOfAdd Invalid operator: right operand of += is \number (expected array or number)
  • maintenance/GenerateFeatureTable.php:98 PhanUndeclaredTypeReturnType Return type of doUpdate() is undeclared type \number
  • maintenance/GenerateFeatureTable.php:119 PhanTypeMismatchReturn Returning type 0 but doUpdate() is declared to return \number
  • maintenance/GenerateWorkload.php:59 PhanUndeclaredMethod Call to undeclared method \GenerateWorkload::saveToDatabase
  • maintenance/GenerateWorkload.php:60 PhanUndeclaredMethod Call to undeclared method \GenerateWorkload::exportTexDocument
  • maintenance/GenerateWorkload.php:81 PhanTypeMismatchArgument Argument 3 ($conds) is true of type true but \Wikimedia\Rdbms\DBConnRef::select() takes array|string defined at ../../includes/libs/rdbms/database/DBConnRef.php:309
  • maintenance/ImportStackExchangeDump.php:69 PhanTypeMismatchArgument Argument 1 ($file) is $file of type \DirectoryIterator|\FilesystemIterator|\Iterator|\SeekableIterator|\SplFileInfo|\Traversable|iterable|string but \MathSearch\StackExchange\DumpReader::__construct() takes \SplFileObject defined at includes/stackexchange/DumpReader.php:30
  • maintenance/IndexBase.php:98 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \IndexBase::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select)
  • maintenance/IndexBase.php:99 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\DBConnRef::select() in \IndexBase::execute that outputs using tainted argument $[arg #3]. (Caused by: Builtin-\Wikimedia\Rdbms\DBConnRef::select)
  • maintenance/IndexBase.php:116 PhanTypeMismatchArgumentInternalProbablyReal Argument 2 ($mode) is '0755' of type '0755' but \mkdir() takes int
  • maintenance/MathPerformance.php:83 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionExport that outputs using tainted argument $hash. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +82)
  • maintenance/MathPerformance.php:83 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionExport that outputs using tainted argument $tex. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +81)
  • maintenance/MathPerformance.php:111 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\IDatabase::selectField() in \MathPerformance::getFormulae that outputs using tainted argument $table. (Caused by: Builtin-\Wikimedia\Rdbms\IDatabase::selectField) (Caused by: maintenance/MathPerformance.php +106)
  • maintenance/MathPerformance.php:118 SecurityCheck-SQLInjection Calling method \Wikimedia\Rdbms\IDatabase::select() in \MathPerformance::getFormulae that outputs using tainted argument $table. (Caused by: Builtin-\Wikimedia\Rdbms\IDatabase::select) (Caused by: maintenance/MathPerformance.php +106)
  • maintenance/MathPerformance.php:131 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionBenchmark that outputs using tainted argument $hash. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +130)
  • maintenance/MathPerformance.php:131 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionBenchmark that outputs using tainted argument $tex. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +129)
  • maintenance/MathPerformance.php:134 PhanTypeMismatchArgument Argument 2 ($type) is false of type false but \MathRestbaseInterface::__construct() takes string defined at ../../extensions/Math/src/MathRestbaseInterface.php:33
  • maintenance/MathPerformance.php:206 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionPng that outputs using tainted argument $hash. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +204)
  • maintenance/MathPerformance.php:206 SecurityCheck-SQLInjection Calling method \MathPerformance::getFormulae() in \MathPerformance::actionPng that outputs using tainted argument $tex. (Caused by: maintenance/MathPerformance.php +118) (Caused by: maintenance/MathPerformance.php +203)
  • maintenance/MathPerformance.php:222 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • maintenance/MathPerformance.php:229 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • maintenance/MathPerformance.php:245 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • maintenance/MathPerformance.php:260 PhanRedefinedClassReference Saw reference to \Psr\Log\LoggerInterface declared at ../../vendor/psr/log/Psr/Log/LoggerInterface.php:20 which is also declared at ../../extensions/Math/vendor/psr/log/Psr/Log/LoggerInterface.php:20. This may lead to confusing errors. It may be possible to exclude the class that isn't used with exclude_file_list. In addition to normal ways to suppress issues, this issue type can be suppressed on either of the class definitions if it is impractical to exclude one file.
  • maintenance/MathPerformance.php:282 PhanTypeMismatchArgumentInternalProbablyReal Argument 2 ($mode) is '0755' of type '0755' but \mkdir() takes int
  • maintenance/QueryEval.php:37 PhanTypeMismatchArgument Argument 1 ($db) is $db of type \IDatabase|\Wikimedia\Rdbms\IDatabase|string but \MySqlFunctionDropper::__construct() takes \Wikimedia\Rdbms\IMaintainableDatabase defined at ../../includes/installer/DatabaseUpdater.php:112
  • maintenance/QueryEval.php:49 PhanTypeMissingReturn Method \MySqlFunctionDropper::dropFunction is declared to return bool in phpdoc but has no return value
  • maintenance/QueryEval.php:73 PhanTypeMismatchArgument Argument 1 ($db) is $dbw of type \DBConnRef|\IDatabase|\Wikimedia\Rdbms\DBConnRef|\Wikimedia\Rdbms\IDatabase|string but \DatabaseUpdater::newForDB() takes \Wikimedia\Rdbms\IMaintainableDatabase defined at ../../includes/installer/DatabaseUpdater.php:186
  • maintenance/UpdateMath.php:136 PhanTypeInvalidRightOperandOfAdd Invalid operator: right operand of += is \number (expected array or number)
  • maintenance/UpdateMath.php:136 PhanTypeMismatchArgument Argument 2 ($pText) is $revText of type \MediaWiki\Revision\RevisionRecord|\MediaWiki\Storage\RevisionRecord but \UpdateMath::doUpdate() takes string defined at maintenance/UpdateMath.php:157
  • maintenance/UpdateMath.php:157 PhanUndeclaredTypeReturnType Return type of doUpdate() is undeclared type \number
  • maintenance/UpdateMath.php:180 PhanParamTooMany Call with 1 arg(s) to \MathRenderer::render() which only takes 0 arg(s) defined at ../../extensions/Math/src/MathRenderer.php:201
  • maintenance/UpdateMath.php:202 PhanParamTooMany Call with 1 arg(s) to \MathRenderer::writeCache() which only takes 0 arg(s) defined at ../../extensions/Math/src/MathRenderer.php:446
  • maintenance/UpdateMath.php:209 PhanTypeMismatchArgument Argument 1 ($id) is $eId of type null but \MathSearchHooks::setMathId() takes int defined at includes/MathSearchHooks.php:126
  • maintenance/UpdateMath.php:215 PhanPossiblyUndeclaredVariable Variable $eId is possibly undeclared
  • maintenance/UpdateMath.php:224 PhanTypeMismatchReturn Returning type non-zero-int but doUpdate() is declared to return \number
  • maintenance/UpdateMath.php:226 PhanTypeMismatchReturn Returning type 0 but doUpdate() is declared to return \number

real 16m0.695s
user 15m24.554s
sys 0m5.463s

Change 606826 had a related patch set uploaded (by Physikerwelt; owner: Physikerwelt):
[mediawiki/extensions/MathSearch@master] Enable phan

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

Change 606826 merged by Physikerwelt:
[mediawiki/extensions/MathSearch@master] Enable phan

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