Update Progress.php

This commit is contained in:
Anton 2021-12-22 22:37:52 +03:00 committed by GitHub
parent 86b6ec0d73
commit dede0982fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,15 +166,15 @@ class Progress extends Widget
}
/**
* Generates a bar
* Generates a progress bar.
* @param int $percent the percentage of the bar
* @param string $label , optional, the label to display at the bar
* @param string $label optional, the label to display at the bar
* @param array $options the HTML attributes of the bar
* @return string the rendering result.
*/
protected function renderBar(int $percent, string $label = '', array $options = []): string
{
$percent = (float)trim(rtrim((string)$percent, '%'));
$options = array_merge($options, [
'role' => 'progressbar',
'aria' => [