Page MenuHomePhabricator

Parameter 'duration' has invalid type. Expected type 'optional float|int', got type 'string'
Closed, ResolvedPublic

Description

[03-Sep-2015 15:00:22 Australia/Sydney] [2015-09-03 15:00:22] EXCEPTION: (PhutilTypeCheckException) Parameter 'duration' has invalid type. Expected type 'optional float|int', got type 'string'. at [<phutil>/src/parser/PhutilTypeSpec.php:12
9]
[03-Sep-2015 15:00:22 Australia/Sydney] arcanist(head=master, ref.master=029e5a7c2900), phabricator(head=master, ref.master=a13db0a3ec0c, custom=1), phlab(head=master, ref.master=c090c8485be5), phutil(head=master, ref.master=ece08d9d1300)
[03-Sep-2015 15:00:22 Australia/Sydney]   #0 <#2> PhutilTypeSpec::check(string, string) called at [<phutil>/src/parser/PhutilTypeSpec.php:169]
[03-Sep-2015 15:00:22 Australia/Sydney]   #1 <#2> PhutilTypeSpec::checkMap(array, array) called at [<phabricator>/src/applications/harbormaster/storage/build/HarbormasterBuildUnitMessage.php:79]
[03-Sep-2015 15:00:22 Australia/Sydney]   #2 <#2> HarbormasterBuildUnitMessage::newFromDictionary(HarbormasterBuildTarget, array) called at [<phabricator>/src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php:24
4]
[03-Sep-2015 15:00:22 Australia/Sydney]   #3 <#2> HarbormasterSendMessageConduitAPIMethod::execute(ConduitAPIRequest) called at [<phabricator>/src/applications/conduit/method/ConduitAPIMethod.php:113]
[03-Sep-2015 15:00:22 Australia/Sydney]   #4 <#2> ConduitAPIMethod::executeMethod(ConduitAPIRequest) called at [<phabricator>/src/applications/conduit/call/ConduitCall.php:135]
[03-Sep-2015 15:00:22 Australia/Sydney]   #5 <#2> ConduitCall::executeMethod() called at [<phabricator>/src/applications/conduit/call/ConduitCall.php:85]
[03-Sep-2015 15:00:22 Australia/Sydney]   #6 <#2> ConduitCall::execute() called at [<phabricator>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:91]
[03-Sep-2015 15:00:22 Australia/Sydney]   #7 phlog(PhutilTypeCheckException) called at [<phabricator>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:111]
[03-Sep-2015 15:00:22 Australia/Sydney]   #8 PhabricatorConduitAPIController::processRequest() called at [<phabricator>/src/aphront/AphrontController.php:29]
[03-Sep-2015 15:00:22 Australia/Sydney]   #9 AphrontController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:237]
[03-Sep-2015 15:00:22 Australia/Sydney]   #10 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationCo
nfiguration.php:149]
[03-Sep-2015 15:00:22 Australia/Sydney]   #11 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a subscriber: joshuaspence.
epriestley claimed this task.
epriestley added a subscriber: epriestley.

Modern arc should catch this on the client instead.

It indicates that a linter is not implemented correctly. At HEAD, arc will tell you exactly what's wrong.