Skip to content

Commit

Permalink
maint: Remove false-positive ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
famoser committed Dec 29, 2024
1 parent 0706661 commit 70f585a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Backend/Structure/Document/Font/CMapCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ private function createMappingByHexLength(array $unicodeMapping): array
$hexPointsByLength = [];
foreach ($unicodeMapping as $unicodePoint => $value) {
$utf8Char = mb_chr($unicodePoint, 'UTF-8');
/** @phpstan-ignore-next-line */
$byte = unpack('H*', $utf8Char)[1];
$normalizedByte = $this->ensureLengthMultipleOf2($byte);
$length = \strlen($normalizedByte);
Expand Down
3 changes: 0 additions & 3 deletions src/Font/Frontend/StreamReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,19 +260,16 @@ public function isEndOfFileReached(): bool

private static function unpackUInt16(string $content, int $offset): int
{
/** @phpstan-ignore-next-line */
return unpack('nnumber', $content, $offset)['number'];
}

private static function unpackUInt32(string $content, int $offset): int
{
/** @phpstan-ignore-next-line */
return unpack('Nnumber', $content, $offset)['number'];
}

private static function unpackUInt64(string $content, int $offset): int
{
/** @phpstan-ignore-next-line */
return unpack('Jnumber', $content, $offset)['number'];
}

Expand Down
1 change: 0 additions & 1 deletion tests/Integration/Font/Frontend/FileReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class FileReaderTest extends TestCase

public static function getDefaultFontContent(): string
{
/** @phpstan-ignore-next-line */
return file_get_contents(self::$defaultFilePath);
}

Expand Down
2 changes: 0 additions & 2 deletions tests/Resources/ResourcesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ class ResourcesProvider
{
public static function getImage1Path(): string
{
/** @phpstan-ignore-next-line */
return realpath(__DIR__.\DIRECTORY_SEPARATOR.'images'.\DIRECTORY_SEPARATOR.'image1.jpg');
}

public static function getFontOpenSansPath(): string
{
/** @phpstan-ignore-next-line */
return realpath(__DIR__.\DIRECTORY_SEPARATOR.'fonts'.\DIRECTORY_SEPARATOR.'OpenSans.ttf');
}
}

0 comments on commit 70f585a

Please sign in to comment.