aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/chillerlan/php-qrcode/src/Helpers/Polynomial.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/chillerlan/php-qrcode/src/Helpers/Polynomial.php')
-rw-r--r--vendor/chillerlan/php-qrcode/src/Helpers/Polynomial.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/chillerlan/php-qrcode/src/Helpers/Polynomial.php b/vendor/chillerlan/php-qrcode/src/Helpers/Polynomial.php
index c42e0831c..fa4046086 100644
--- a/vendor/chillerlan/php-qrcode/src/Helpers/Polynomial.php
+++ b/vendor/chillerlan/php-qrcode/src/Helpers/Polynomial.php
@@ -69,7 +69,7 @@ final class Polynomial{
/**
* Polynomial constructor.
*/
- public function __construct(array $num = null, int $shift = null){
+ public function __construct(?array $num = null, ?int $shift = null){
$this->setNum($num ?? [1], $shift);
}
@@ -86,7 +86,7 @@ final class Polynomial{
*
* @return \chillerlan\QRCode\Helpers\Polynomial
*/
- public function setNum(array $num, int $shift = null):Polynomial{
+ public function setNum(array $num, ?int $shift = null):Polynomial{
$offset = 0;
$numCount = count($num);
@@ -157,7 +157,7 @@ final class Polynomial{
throw new QRCodeException(sprintf('log(%s)', $n));
}
- return Polynomial::table[$n][1];
+ return self::table[$n][1];
}
/**
@@ -172,7 +172,7 @@ final class Polynomial{
$n -= 255;
}
- return Polynomial::table[$n][0];
+ return self::table[$n][0];
}
}