mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-30 03:58:28 +00:00
:octocat: reintroducing phan because phpstan keeps making trouble
This commit is contained in:
@@ -124,7 +124,7 @@ abstract class DataInterfaceTestAbstract extends TestCase{
|
||||
public static function maxLengthProvider():Generator{
|
||||
$eccLevels = array_map(fn(int $ecc):EccLevel => new EccLevel($ecc), [EccLevel::L, EccLevel::M, EccLevel::Q, EccLevel::H]);
|
||||
$str = str_repeat(static::testData, 1000);
|
||||
|
||||
/** @phan-suppress-next-line PhanAbstractStaticMethodCallInStatic */
|
||||
$dataMode = static::getDataModeInterface(static::testData)::DATAMODE;
|
||||
$mb = ($dataMode === Mode::KANJI || $dataMode === Mode::HANZI);
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ final class ECITest extends TestCase{
|
||||
private function getDataSegments():array{
|
||||
return [
|
||||
new ECI($this->testCharset),
|
||||
/** @phan-suppress-next-line PhanParamSuspiciousOrder */
|
||||
new Byte(mb_convert_encoding(self::testData, ECICharset::MB_ENCODINGS[$this->testCharset], mb_internal_encoding())),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user