? Failure

User tests: Successful: Unsuccessful:

avatar demis-palma
demis-palma
2 May 2017

The PHPdoc declares the variable as "double"
@param double $startTime
but the method initialises its default value with an "integer" instead
$startTime = 0

Summary of Changes

Changed the default value to type double

Testing Instructions

To be merged on review

avatar demis-palma demis-palma - open - 2 May 2017
avatar demis-palma demis-palma - change - 2 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 May 2017
Category Libraries
avatar rdeutz rdeutz - change - 27 May 2017
Labels Added: ?
avatar Quy
Quy - comment - 10 May 2019

Tested with 0 and 0.0 and the result is always 0. Thus, it doesn't make a difference. Close PR?

$startTime = 0;
echo (double) $startTime; 
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 11 May 2019

closed for Reason stated above. Pull Request can always reopened if needed.

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 May 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-05-11 04:26:07
Closed_By franz-wohlkoenig
Labels Removed: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - close - 11 May 2019
avatar HLeithner
HLeithner - comment - 12 May 2019

There is a difference, the var gets initialized as float if 0.0 so this pr is correct

avatar HLeithner HLeithner - change - 12 May 2019
Status Closed New
Closed_Date 2019-05-11 04:26:07
Closed_By franz-wohlkoenig
avatar HLeithner HLeithner - change - 12 May 2019
Status New Pending
avatar HLeithner HLeithner - reopen - 12 May 2019
avatar HLeithner
HLeithner - comment - 12 May 2019

The file moved to libraries/src/Profiler/Profiler.php in the meantime may @demis-palma could rebase it?

avatar Quy Quy - change - 21 May 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-05-21 14:40:59
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 21 May 2019
Closed_Date 2019-05-21 14:40:59 2019-05-21 14:41:03
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 21 May 2019
avatar joomla-cms-bot
joomla-cms-bot - comment - 21 May 2019

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/15743

avatar Quy
Quy - comment - 21 May 2019

Closing in favor of PR #24971


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15743.

avatar Quy
Quy - comment - 21 May 2019

Closing in favor of PR #24971


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15743.

Add a Comment

Login with GitHub to post a comment