Open jasson99 opened 4 years ago
When working on updating phpstan for files_external_dropbox, this error is found:
------ ----------------------------------------------------------------------------------------------------------------------------------------------------------- Line lib/Storage/Dropbox.php ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------- 79 Property OCA\Files_external_dropbox\Storage\Dropbox::$flysystem (OCA\Files_external_dropbox\Storage\Adapter) does not accept League\Flysystem\Filesystem. ------ -----------------------------------------------------------------------------------------------------------------------------------------------------------
The function including line 79 is:
/** * Initialize the storage backend with a flyssytem adapter * @override * @param \League\Flysystem\Filesystem $fs */ public function setFlysystem($fs) { $this->flysystem = $fs; $this->flysystem->addPlugin(new \League\Flysystem\Plugin\GetWithMetadata()); }
And line 79 is:
$this->flysystem = $fs;
Maybe this is a real problem, or maybe it is safe to just override this in phpstan? Someone who knows the code needs to look at it.
When working on updating phpstan for files_external_dropbox, this error is found:
The function including line 79 is:
And line 79 is: