Skip to content

Commit 89dd8a7

Browse files
committed
Fix issue
1 parent c49baa7 commit 89dd8a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/MaintenanceMiddleware.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ public static function createWithRetryAsSeconds($seconds)
3939
if (!is_int($seconds)) {
4040
throw new \InvalidArgumentException('Seconds must be integer');
4141
}
42-
4342
$instance = new self();
44-
4543
$instance->retryAfter = (string) $seconds;
4644

4745
return $instance;
@@ -52,7 +50,7 @@ public static function createWithRetryAsSeconds($seconds)
5250
*
5351
* @return self
5452
*/
55-
public function createWithRetryAsSecondsAndRefresh($seconds)
53+
public static function createWithRetryAsSecondsAndRefresh($seconds)
5654
{
5755
$instance = self::createWithRetryAsSeconds($seconds);
5856
$instance->refresh = $seconds;

0 commit comments

Comments
 (0)