Skip to content

Commit e4384cc

Browse files
committed
fix type-hints
1 parent 71a3a65 commit e4384cc

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/Types/Video/Episode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function series(string $url)
2121
public function actor(string $url, ?string $role = null)
2222
{
2323
$this->addProperty(self::PREFIX, 'actor', $url);
24-
$this->when($role, fn(Movie $movie) => $movie->addProperty(self::PREFIX, 'actor:role', $role));
24+
$this->when($role, fn() => $this->addProperty(self::PREFIX, 'actor:role', $role));
2525

2626
return $this;
2727
}

src/Types/Video/Other.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Other extends Type
1414
public function actor(string $url, ?string $role = null)
1515
{
1616
$this->addProperty(self::PREFIX, 'actor', $url);
17-
$this->when($role, fn(Movie $movie) => $movie->addProperty(self::PREFIX, 'actor:role', $role));
17+
$this->when($role, fn() => $this->addProperty(self::PREFIX, 'actor:role', $role));
1818

1919
return $this;
2020
}

src/Types/Video/TvShow.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class TvShow extends Type
1414
public function actor(string $url, ?string $role = null)
1515
{
1616
$this->addProperty(self::PREFIX, 'actor', $url);
17-
$this->when($role, fn(Movie $movie) => $movie->addProperty(self::PREFIX, 'actor:role', $role));
17+
$this->when($role, fn() => $this->addProperty(self::PREFIX, 'actor:role', $role));
1818

1919
return $this;
2020
}
@@ -33,13 +33,6 @@ public function writer(string $url)
3333
return $this;
3434
}
3535

36-
public function duration(int $seconds)
37-
{
38-
$this->setProperty(self::PREFIX, 'duration', $seconds);
39-
40-
return $this;
41-
}
42-
4336
public function releasedAt(DateTime $releaseDate)
4437
{
4538
$this->setProperty(self::PREFIX, 'release_date', $releaseDate->format('Y-m-d'));

0 commit comments

Comments
 (0)