Skip to content

Commit ae0f312

Browse files
committed
🚿
1 parent 60a19b3 commit ae0f312

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Data/QRDataModeInterface.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ interface QRDataModeInterface{
2121
* the current data mode: Number, Alphanum, Kanji, Hanzi, Byte, ECI
2222
*
2323
* tbh I hate this constant here, but it's part of the interface, so I can't just declare it in the abstract class.
24-
* phan will complain about a PhanAccessOverridesFinalConstant.
24+
* (phan will complain about a PhanAccessOverridesFinalConstant)
25+
*
26+
* @see https://wiki.php.net/rfc/final_class_const
2527
*
2628
* @var int
2729
* @see \chillerlan\QRCode\Common\Mode
30+
* @internal do not call this constant from the interface, but rather from one of the child classes
2831
*/
2932
public const DATAMODE = -1;
3033

src/Output/QRMarkupHTML.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function createMarkup(bool $saveToFile):string{
4242
// wrap the snippet into a body when saving to file
4343
if($saveToFile){
4444
$html = sprintf(
45-
'<!DOCTYPE html><html><head><meta charset="UTF-8"><title>QR Code</title></head><body>%s</body></html>',
45+
'<!DOCTYPE html><html lang=""><head><meta charset="UTF-8"><title>QR Code</title></head><body>%s</body></html>',
4646
$this->options->eol.$html
4747
);
4848
}

0 commit comments

Comments
 (0)