Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Profiler::slowThreshold setter method to accept float value. #2027

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Propel/Runtime/Util/Profiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ public function __construct(float $slowThreshold = 0.1, string $innerGlue = ': '
}

/**
* Set the duration which triggers the 'slow' label on details.
* Set the duration which triggers the 'slow' label on details, such as 0.1 (100ms) or 0.001 (1ms).
*
* @param int $slowThreshold duration in seconds
* @param float $slowThreshold duration in seconds
*
* @return void
*/
public function setSlowThreshold(int $slowThreshold): void
public function setSlowThreshold(float $slowThreshold): void
{
$this->slowThreshold = $slowThreshold;
}
Expand Down
Loading