mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-25 00:47:55 +00:00
:octocat: added link to https://github.com/chillerlan/php-qrcode/issues/15
This commit is contained in:
+4
-3
@@ -161,9 +161,10 @@ class QRCode{
|
||||
* @throws \chillerlan\QRCode\Data\QRCodeDataException
|
||||
*/
|
||||
public function getMatrix(string $data):QRMatrix {
|
||||
//NOTE: input sanitization should be done outside
|
||||
//$data = trim($data);
|
||||
|
||||
// https://github.com/chillerlan/php-qrcode/pull/15
|
||||
// NOTE: input sanitization should be done outside
|
||||
// $data = trim($data);
|
||||
|
||||
if(empty($data)){
|
||||
throw new QRCodeDataException('QRCode::getMatrix() No data given.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user