:octocat: reintroducing phan because phpstan keeps making trouble

This commit is contained in:
smiley
2025-07-19 23:29:41 +02:00
parent 5477e121d3
commit bf34b46c57
21 changed files with 6853 additions and 13 deletions
+1 -1
View File
@@ -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);
+1
View File
@@ -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())),
];
}