Skip to content

Commit

Permalink
Merge pull request #16 from kiwilan/develop
Browse files Browse the repository at this point in the history
3.0.02
  • Loading branch information
ewilan-riviere authored Sep 21, 2023
2 parents 40f324b + 8cd7664 commit 4b7557e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kiwilan/php-audio",
"description": "PHP package to parse and update audio files metadata, with `JamesHeinrich/getID3`.",
"version": "3.0.01",
"version": "3.0.02",
"keywords": [
"audio",
"php",
Expand Down
12 changes: 10 additions & 2 deletions src/Models/Id3Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@ public function year(int $year): self
return $this;
}

public function trackNumber(?string $trackNumber): self
public function trackNumber(string|int|null $trackNumber): self
{
if (is_int($trackNumber)) {
$trackNumber = (string) $trackNumber;
}

$this->core->setTrackNumber($trackNumber);

return $this;
Expand All @@ -133,8 +137,12 @@ public function composer(?string $composer): self
return $this;
}

public function discNumber(?string $discNumber): self
public function discNumber(string|int|null $discNumber): self
{
if (is_int($discNumber)) {
$discNumber = (string) $discNumber;
}

$this->core->setDiscNumber($discNumber);

return $this;
Expand Down

0 comments on commit 4b7557e

Please sign in to comment.