mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-11-21 02:06:15 +00:00
🔥 v6.0 first pass: PHP 8.2, remove deprecated elements, add type hints
This commit is contained in:
@@ -19,7 +19,7 @@ use function json_encode;
|
||||
*/
|
||||
class QRStringJSON extends QROutputAbstract{
|
||||
|
||||
public const MIME_TYPE = 'application/json';
|
||||
final public const MIME_TYPE = 'application/json';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
@@ -39,7 +39,7 @@ class QRStringJSON extends QROutputAbstract{
|
||||
*
|
||||
* @inheritDoc
|
||||
*/
|
||||
protected function prepareModuleValue($value):string{
|
||||
protected function prepareModuleValue(mixed $value):string{
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ class QRStringJSON extends QROutputAbstract{
|
||||
*
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function moduleValueIsValid($value):bool{
|
||||
public static function moduleValueIsValid(mixed $value):bool{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user