Skip to content

Commit

Permalink
fix: new typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rem42 committed Oct 28, 2022
1 parent 9396cd7 commit b73714d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": "^8.1",
"ext-json": "*",
"rem42/scraper": "3.x-dev",
"rem42/scraper": "^3.0",
"symfony/serializer-pack": "^1.1"
},
"require-dev": {
Expand Down
12 changes: 4 additions & 8 deletions src/Request/AllocineRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@ abstract class AllocineRequest extends ScraperRequest implements RequestQuery
// protected string $mediaFmt = 'mp4-best';
protected string $mediaFmt = 'mp4-lc:m';

private string $partner;
private string $hash;

public function __construct(string $partner, string $hash)
{
$this->partner = $partner;
$this->hash = $hash;
}
public function __construct(
private readonly string $partner,
private readonly string $hash
) {}

/**
* @return array<string, int|string>
Expand Down

0 comments on commit b73714d

Please sign in to comment.