Skip to content

Commit 8623619

Browse files
authored
Merge pull request #29 from samsonasik/apply-php80
Apply PHP 8.0 syntax
2 parents a18fda4 + bc97828 commit 8623619

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/AbstractAdapter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,9 @@ public function setName($name)
7171
* Set single option for the object
7272
*
7373
* @param string $key
74-
* @param mixed $value
7574
* @return $this Provides a fluent interface
7675
*/
77-
public function setOption($key, $value)
76+
public function setOption($key, mixed $value)
7877
{
7978
if (in_array(strtolower($key), $this->skipOptions)) {
8079
return $this;

src/Image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public function setWidth($width)
432432
*/
433433
protected function randomFreq()
434434
{
435-
return mt_rand(700000, 1000000) / 15000000;
435+
return mt_rand(700000, 1_000_000) / 15_000_000;
436436
}
437437

438438
/**
@@ -443,7 +443,7 @@ protected function randomFreq()
443443
protected function randomPhase()
444444
{
445445
// random phase from 0 to pi
446-
return mt_rand(0, 3141592) / 1000000;
446+
return mt_rand(0, 3_141_592) / 1_000_000;
447447
}
448448

449449
/**

0 commit comments

Comments
 (0)