Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
fix(Torrent): Fix can't download torrent due to Declaration compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Sep 16, 2019
1 parent 33cc1e6 commit 36588cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
- **Redis:** Remove view in redis , use other software install (c5d3378)

### Style
- **Bencode:** Move Bencode library to App\Library but not part of framework (01abc98)
- **EnvironmentLoader:** Use Dotenv to load Loads environment variables (e6394a6)
- **Redis:** rewrite namespace of cache keys (0c4e1a2)
- **dir:** rename folder `apps\` to `src\` (a01035c)
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Form/Manage/Categories/EditForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function inputRules(): array
];
}

public static function callbackRules():array
public static function callbackRules(): array
{
return ['checkCategoryData'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Form/Torrent/DownloadForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class DownloadForm extends StructureForm
protected static $SEND_FILE_CONTENT_TYPE = 'application/x-bittorrent';
protected static $SEND_FILE_CACHE_CONTROL = true;

public static function callbackRules()
public static function callbackRules(): array
{
return ['checkDownloadPos', 'isExistTorrent', 'rateLimitCheck'];
}
Expand Down

0 comments on commit 36588cc

Please sign in to comment.