diff --git a/src/Data/QRDataInterface.php b/src/Data/QRDataInterface.php index c7fb7fb09..dd404c9ae 100644 --- a/src/Data/QRDataInterface.php +++ b/src/Data/QRDataInterface.php @@ -15,7 +15,8 @@ namespace chillerlan\QRCode\Data; use chillerlan\QRCode\BitBuffer; /** - * + * @property string data + * @property int dataLength */ interface QRDataInterface{ diff --git a/src/QRCode.php b/src/QRCode.php index 109df0532..d3d6fe8e6 100644 --- a/src/QRCode.php +++ b/src/QRCode.php @@ -92,7 +92,7 @@ class QRCode{ * * @param string $data * @param \chillerlan\QRCode\Output\QROutputInterface $output - * @param \chillerlan\QRCode\QROptions $options + * @param \chillerlan\QRCode\QROptions|null $options */ public function __construct($data, QROutputInterface $output, QROptions $options = null){ $this->qrOutputInterface = $output; @@ -101,8 +101,8 @@ class QRCode{ } /** - * @param string $data - * @param \chillerlan\QRCode\QROptions $options + * @param string $data + * @param \chillerlan\QRCode\QROptions|null $options * * @return $this * @throws \chillerlan\QRCode\QRCodeException @@ -128,7 +128,7 @@ class QRCode{ case Util::isAlphaNum($data): $mode = Util::isNumber($data) ? QRConst::MODE_NUMBER : QRConst::MODE_ALPHANUM; break; - case Util::isKanji($data) : + case Util::isKanji($data): $mode = QRConst::MODE_KANJI; break; default: