fix: Don't call PlaylistArchiveStream parent constructor
Because it messes with the output buffer Fixes #215
This commit is contained in:
parent
7ab4c55550
commit
07261db27b
5 changed files with 537 additions and 202 deletions
|
@ -36,7 +36,8 @@ module.exports = function (grunt) {
|
||||||
phpstan: {
|
phpstan: {
|
||||||
options: {
|
options: {
|
||||||
level: 'max',
|
level: 'max',
|
||||||
bin: 'vendor/bin/phpstan'
|
bin: 'vendor/bin/phpstan',
|
||||||
|
config: 'phpstan.neon'
|
||||||
},
|
},
|
||||||
php: {
|
php: {
|
||||||
src: ['*.php', 'classes/*.php', 'controllers/*.php']
|
src: ['*.php', 'classes/*.php', 'controllers/*.php']
|
||||||
|
|
|
@ -66,8 +66,6 @@ class PlaylistArchiveStream extends TarArchive
|
||||||
*/
|
*/
|
||||||
public function __construct(Config $config = null)
|
public function __construct(Config $config = null)
|
||||||
{
|
{
|
||||||
parent::__construct();
|
|
||||||
|
|
||||||
$this->client = new Client();
|
$this->client = new Client();
|
||||||
$this->download = new VideoDownload($config);
|
$this->download = new VideoDownload($config);
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"grunt-markdownlint": "~2.1.0",
|
"grunt-markdownlint": "~2.1.0",
|
||||||
"grunt-phpcs": "~0.4.0",
|
"grunt-phpcs": "~0.4.0",
|
||||||
"grunt-phpdocumentor": "~0.4.1",
|
"grunt-phpdocumentor": "~0.4.1",
|
||||||
"grunt-phpstan": "~0.1.0",
|
"grunt-phpstan": "~0.2.0",
|
||||||
"grunt-phpunit": "~0.3.6"
|
"grunt-phpunit": "~0.3.6"
|
||||||
},
|
},
|
||||||
"homepage": "https://www.alltubedownload.net/",
|
"homepage": "https://www.alltubedownload.net/",
|
||||||
|
|
4
phpstan.neon
Normal file
4
phpstan.neon
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
parameters:
|
||||||
|
ignoreErrors:
|
||||||
|
# The Archive constructor messes up the output buffering.
|
||||||
|
- '#Alltube\\PlaylistArchiveStream::__construct\(\) does not call parent constructor from Barracuda\\ArchiveStream\\TarArchive\.#'
|
Loading…
Reference in a new issue