Skip to content

Commit

Permalink
Ignore some phpstan warnings until fixed in 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
StudioMaX committed Nov 2, 2023
1 parent 5a3f29c commit 37a7b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Module/Tag/ID3v2.php
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ public function ParseID3v2Frame(&$parsedFrame) {

$frame_offset = 0;
$parsedFrame['adjustmentbits'] = substr($parsedFrame['data'], $frame_offset++, 1);
$frame_adjustmentbytes = ceil($parsedFrame['adjustmentbits'] / 8);
$frame_adjustmentbytes = ceil($parsedFrame['adjustmentbits'] / 8); // @phpstan-ignore-line

Check failure on line 1307 in src/Module/Tag/ID3v2.php

View workflow job for this annotation

GitHub Actions / Static Analysis

No error to ignore is reported on line 1307.

$frame_remainingdata = (string) substr($parsedFrame['data'], $frame_offset);
while (strlen($frame_remainingdata) > 0) {
Expand Down Expand Up @@ -2182,7 +2182,7 @@ public function ParseID3v2Frame(&$parsedFrame) {
if (($subframe['name'] == 'TIT2') || ($subframe['name'] == 'TIT3')) {
if ($subframe['name'] == 'TIT2') {
$parsedFrame['toc_name'] = $encoding_converted_text;
} elseif ($subframe['name'] == 'TIT3') {
} elseif ($subframe['name'] == 'TIT3') { // @phpstan-ignore-line

Check failure on line 2185 in src/Module/Tag/ID3v2.php

View workflow job for this annotation

GitHub Actions / Static Analysis

No error to ignore is reported on line 2185.
$parsedFrame['toc_description'] = $encoding_converted_text;
}
$parsedFrame['subframes'][] = $subframe;
Expand Down

0 comments on commit 37a7b67

Please sign in to comment.