Skip to content

Commit 684002b

Browse files
Merge pull request #46 from kiwilan/develop
v4.0.02
2 parents cde868c + 4e30bb9 commit 684002b

19 files changed

Lines changed: 156 additions & 154 deletions

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: vendor/bin/pest --coverage
4343

4444
- name: Send code coverage
45-
uses: codecov/codecov-action@v4
45+
uses: codecov/codecov-action@v5
4646
with:
4747
token: ${{ secrets.CODECOV_TOKEN }}
4848
verbose: false

.github/workflows/phpstan-php-code.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ jobs:
1212
- uses: php-actions/phpstan@v3
1313
with:
1414
path: src/
15+
version: "composer"
16+
php_version: 8.3

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest, windows-latest]
12-
php: [8.3, 8.2, 8.1]
12+
php: [8.4, 8.3, 8.2, 8.1]
1313
stability: [prefer-stable]
1414

1515
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kiwilan/php-audio",
33
"description": "PHP package to parse and update audio files metadata, with `JamesHeinrich/getID3`.",
4-
"version": "4.0.01",
4+
"version": "4.0.02",
55
"keywords": [
66
"audio",
77
"php",
@@ -42,7 +42,7 @@
4242
],
4343
"require": {
4444
"php": "^8.1",
45-
"james-heinrich/getid3": "^v1.9.22"
45+
"james-heinrich/getid3": "v1.9.22"
4646
},
4747
"require-dev": {
4848
"pestphp/pest": "^2.0",

src/Id3/Reader/Id3Audio.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ class Id3Audio
88
* @param Id3Stream[] $streams
99
*/
1010
protected function __construct(
11-
readonly public ?string $data_format = null,
12-
readonly public ?int $channels = null,
13-
readonly public ?int $sample_rate = null,
14-
readonly public ?float $bitrate = null,
15-
readonly public ?string $channel_mode = null,
16-
readonly public ?string $bitrate_mode = null,
17-
readonly public ?string $codec = null,
18-
readonly public ?string $encoder = null,
19-
readonly public bool $lossless = false,
20-
readonly public ?string $encoder_options = null,
21-
readonly public ?float $compression_ratio = null,
22-
readonly public array $streams = [],
11+
public readonly ?string $data_format = null,
12+
public readonly ?int $channels = null,
13+
public readonly ?int $sample_rate = null,
14+
public readonly ?float $bitrate = null,
15+
public readonly ?string $channel_mode = null,
16+
public readonly ?string $bitrate_mode = null,
17+
public readonly ?string $codec = null,
18+
public readonly ?string $encoder = null,
19+
public readonly bool $lossless = false,
20+
public readonly ?string $encoder_options = null,
21+
public readonly ?float $compression_ratio = null,
22+
public readonly array $streams = [],
2323
) {}
2424

2525
public static function make(?array $metadata): ?self

src/Id3/Reader/Id3AudioTag.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
class Id3AudioTag
99
{
1010
protected function __construct(
11-
readonly public ?Tag\Id3TagAudioV1 $id3v1 = null,
12-
readonly public ?Tag\Id3TagAudioV2 $id3v2 = null,
13-
readonly public ?Tag\Id3TagQuicktime $quicktime = null,
14-
readonly public ?Tag\Id3TagAsf $asf = null,
15-
readonly public ?Tag\Id3TagVorbisComment $vorbiscomment = null,
16-
readonly public ?Tag\Id3TagRiff $riff = null,
17-
readonly public ?Tag\Id3TagMatroska $matroska = null,
18-
readonly public ?Tag\Id3TagApe $ape = null,
19-
readonly public bool $is_empty = false,
11+
public readonly ?Tag\Id3TagAudioV1 $id3v1 = null,
12+
public readonly ?Tag\Id3TagAudioV2 $id3v2 = null,
13+
public readonly ?Tag\Id3TagQuicktime $quicktime = null,
14+
public readonly ?Tag\Id3TagAsf $asf = null,
15+
public readonly ?Tag\Id3TagVorbisComment $vorbiscomment = null,
16+
public readonly ?Tag\Id3TagRiff $riff = null,
17+
public readonly ?Tag\Id3TagMatroska $matroska = null,
18+
public readonly ?Tag\Id3TagApe $ape = null,
19+
public readonly bool $is_empty = false,
2020
) {}
2121

2222
public static function make(?array $metadata): ?self

src/Id3/Reader/Id3Comments.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
class Id3Comments
66
{
77
protected function __construct(
8-
readonly public ?string $language = null,
9-
readonly public ?Id3CommentsPicture $picture = null,
8+
public readonly ?string $language = null,
9+
public readonly ?Id3CommentsPicture $picture = null,
1010
) {}
1111

1212
public static function make(?array $metadata): ?self

src/Id3/Reader/Id3CommentsPicture.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
class Id3CommentsPicture
66
{
77
protected function __construct(
8-
readonly public ?string $data = null,
9-
readonly public ?string $image_mime = null,
10-
readonly public ?int $image_width = null,
11-
readonly public ?int $image_height = null,
12-
readonly public ?string $picture_type = null,
13-
readonly public ?string $description = null,
14-
readonly public ?int $data_length = null,
8+
public readonly ?string $data = null,
9+
public readonly ?string $image_mime = null,
10+
public readonly ?int $image_width = null,
11+
public readonly ?int $image_height = null,
12+
public readonly ?string $picture_type = null,
13+
public readonly ?string $description = null,
14+
public readonly ?int $data_length = null,
1515
) {}
1616

1717
public static function make(?array $metadata): ?self

src/Id3/Reader/Id3Stream.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
class Id3Stream
66
{
77
protected function __construct(
8-
readonly public ?string $data_format = null,
9-
readonly public ?int $channels = null,
10-
readonly public ?int $sample_rate = null,
11-
readonly public ?float $bitrate = null,
12-
readonly public ?string $channel_mode = null,
13-
readonly public ?string $bitrate_mode = null,
14-
readonly public ?string $codec = null,
15-
readonly public ?string $encoder = null,
16-
readonly public bool $lossless = false,
17-
readonly public ?string $encoder_options = null,
18-
readonly public ?float $compression_ratio = null,
8+
public readonly ?string $data_format = null,
9+
public readonly ?int $channels = null,
10+
public readonly ?int $sample_rate = null,
11+
public readonly ?float $bitrate = null,
12+
public readonly ?string $channel_mode = null,
13+
public readonly ?string $bitrate_mode = null,
14+
public readonly ?string $codec = null,
15+
public readonly ?string $encoder = null,
16+
public readonly bool $lossless = false,
17+
public readonly ?string $encoder_options = null,
18+
public readonly ?float $compression_ratio = null,
1919
) {}
2020

2121
public static function make(?array $metadata): ?self

src/Id3/Reader/Id3Video.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
class Id3Video
66
{
77
protected function __construct(
8-
readonly public ?string $data_format = null,
9-
readonly public ?int $rotate = null,
10-
readonly public ?float $resolution_x = null,
11-
readonly public ?float $resolution_y = null,
12-
readonly public ?float $frame_rate = null,
8+
public readonly ?string $data_format = null,
9+
public readonly ?int $rotate = null,
10+
public readonly ?float $resolution_x = null,
11+
public readonly ?float $resolution_y = null,
12+
public readonly ?float $frame_rate = null,
1313
) {}
1414

1515
public static function make(?array $metadata): ?self

0 commit comments

Comments
 (0)