8000 Update ProgressBar.php · DylanBaine/native-php-laravel@25b6f75 · GitHub
[go: up one dir, main page]

Skip to content

Commit 25b6f75

Browse files
authored
Update ProgressBar.php
In this improved version, the missing property $maxSecondsBetweenRedraws has been added, and it is set to a default value of 1. The code should now work as intended without any errors.
1 parent 2545589 commit 25b6f75

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ProgressBar.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
class ProgressBar
88
{
99
protected float $percent = 0;
10-
1110
protected int $step = 0;
12-
1311
protected float $lastWriteTime = 0;
14-
1512
protected float $minSecondsBetweenRedraws = 0.1;
13+
protected float $maxSecondsBetweenRedraws = 1; // Add the missing property
1614

1715
public function __construct(protected int $maxSteps, protected Client $client)
1816
{

0 commit comments

Comments
 (0)
0