mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-30 03:58:28 +00:00
:octocat: fix docblock @param for QROptions (#332)
This commit is contained in:
+4
-46
@@ -218,13 +218,7 @@ parameters:
|
||||
path: examples/imageWithLogo.php
|
||||
|
||||
-
|
||||
rawMessage: 'Method QRGdRounded::__construct() has parameter $options with no value type specified in iterable type iterable.'
|
||||
identifier: missingType.iterableValue
|
||||
count: 1
|
||||
path: examples/imageWithRoundedShapes.php
|
||||
|
||||
-
|
||||
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
|
||||
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, array<string, mixed>|(chillerlan\Settings\SettingsContainerInterface&iterable) given.'
|
||||
identifier: argument.type
|
||||
count: 1
|
||||
path: examples/imageWithRoundedShapes.php
|
||||
@@ -602,13 +596,7 @@ parameters:
|
||||
path: src/Decoder/Decoder.php
|
||||
|
||||
-
|
||||
rawMessage: 'Method chillerlan\QRCode\Decoder\Decoder::__construct() has parameter $options with no value type specified in iterable type iterable.'
|
||||
identifier: missingType.iterableValue
|
||||
count: 1
|
||||
path: src/Decoder/Decoder.php
|
||||
|
||||
-
|
||||
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
|
||||
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, (chillerlan\Settings\SettingsContainerInterface&iterable)|iterable<string, mixed> given.'
|
||||
identifier: argument.type
|
||||
count: 1
|
||||
path: src/Decoder/Decoder.php
|
||||
@@ -742,12 +730,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Output/QRFpdf.php
|
||||
|
||||
-
|
||||
rawMessage: 'Method chillerlan\QRCode\Output\QRFpdf::__construct() has parameter $options with no value type specified in iterable type iterable.'
|
||||
identifier: missingType.iterableValue
|
||||
count: 1
|
||||
path: src/Output/QRFpdf.php
|
||||
|
||||
-
|
||||
rawMessage: '''
|
||||
Access to deprecated property $circleDiameter of class chillerlan\QRCode\Output\QROutputAbstract:
|
||||
@@ -803,13 +785,7 @@ parameters:
|
||||
path: src/Output/QRGdImage.php
|
||||
|
||||
-
|
||||
rawMessage: 'Method chillerlan\QRCode\Output\QRGdImage::__construct() has parameter $options with no value type specified in iterable type iterable.'
|
||||
identifier: missingType.iterableValue
|
||||
count: 1
|
||||
path: src/Output/QRGdImage.php
|
||||
|
||||
-
|
||||
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
|
||||
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, array<string, mixed>|(chillerlan\Settings\SettingsContainerInterface&iterable) given.'
|
||||
identifier: argument.type
|
||||
count: 1
|
||||
path: src/Output/QRGdImage.php
|
||||
@@ -871,12 +847,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Output/QRImagick.php
|
||||
|
||||
-
|
||||
rawMessage: 'Method chillerlan\QRCode\Output\QRImagick::__construct() has parameter $options with no value type specified in iterable type iterable.'
|
||||
identifier: missingType.iterableValue
|
||||
count: 1
|
||||
path: src/Output/QRImagick.php
|
||||
|
||||
-
|
||||
rawMessage: '''
|
||||
Access to deprecated property $circleRadius of class chillerlan\QRCode\Output\QROutputAbstract:
|
||||
@@ -922,12 +892,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Output/QRInterventionImage.php
|
||||
|
||||
-
|
||||
rawMessage: 'Method chillerlan\QRCode\Output\QRInterventionImage::__construct() has parameter $options with no value type specified in iterable type iterable.'
|
||||
identifier: missingType.iterableValue
|
||||
count: 1
|
||||
path: src/Output/QRInterventionImage.php
|
||||
|
||||
-
|
||||
rawMessage: '''
|
||||
Access to deprecated property $eol of class chillerlan\QRCode\Output\QROutputAbstract:
|
||||
@@ -1091,13 +1055,7 @@ parameters:
|
||||
path: src/Output/QROutputAbstract.php
|
||||
|
||||
-
|
||||
rawMessage: 'Method chillerlan\QRCode\Output\QROutputAbstract::__construct() has parameter $options with no value type specified in iterable type iterable.'
|
||||
identifier: missingType.iterableValue
|
||||
count: 1
|
||||
path: src/Output/QROutputAbstract.php
|
||||
|
||||
-
|
||||
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, iterable given.'
|
||||
rawMessage: 'Parameter #1 $properties of class chillerlan\QRCode\QROptions constructor expects array<string, mixed>|null, array<string, mixed>|(chillerlan\Settings\SettingsContainerInterface&iterable) given.'
|
||||
identifier: argument.type
|
||||
count: 1
|
||||
path: src/Output/QROutputAbstract.php
|
||||
|
||||
@@ -36,6 +36,9 @@ final class Decoder{
|
||||
private BitBuffer $bitBuffer;
|
||||
private Detector $detector;
|
||||
|
||||
/**
|
||||
* @param \chillerlan\Settings\SettingsContainerInterface|\chillerlan\QRCode\QROptions|iterable<string, mixed> $options
|
||||
*/
|
||||
public function __construct(SettingsContainerInterface|QROptions|iterable $options = new QROptions){
|
||||
|
||||
if(is_iterable($options)){
|
||||
|
||||
@@ -112,6 +112,8 @@ abstract class QROutputAbstract implements QROutputInterface{
|
||||
|
||||
/**
|
||||
* QROutputAbstract constructor.
|
||||
*
|
||||
* @param \chillerlan\Settings\SettingsContainerInterface|\chillerlan\QRCode\QROptions|array<string, mixed> $options
|
||||
*/
|
||||
public function __construct(SettingsContainerInterface|QROptions|iterable $options, QRMatrix $matrix){
|
||||
|
||||
|
||||
+2
-2
@@ -51,7 +51,7 @@ class QRCode{
|
||||
/**
|
||||
* QRCode constructor.
|
||||
*
|
||||
* @phpstan-param array<string, mixed> $options
|
||||
* @param \chillerlan\Settings\SettingsContainerInterface|\chillerlan\QRCode\QROptions|array<string, mixed> $options
|
||||
*/
|
||||
public function __construct(SettingsContainerInterface|QROptions|iterable $options = new QROptions){
|
||||
$this->setOptions($options);
|
||||
@@ -60,7 +60,7 @@ class QRCode{
|
||||
/**
|
||||
* Sets an options instance
|
||||
*
|
||||
* @phpstan-param array<string, mixed> $options
|
||||
* @param \chillerlan\Settings\SettingsContainerInterface|\chillerlan\QRCode\QROptions|array<string, mixed> $options
|
||||
*/
|
||||
public function setOptions(SettingsContainerInterface|QROptions|iterable $options):static{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user