The type League\Flysystem\Filesystem was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. excluded_paths:["lib/*"],
you can move it to the dependency path list as follows:
The type League\Flysystem\FilesystemException was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. excluded_paths:["lib/*"],
you can move it to the dependency path list as follows:
It seems like you do not handle an error condition for unlink(). This can introduce security issues, and is generally not recommended.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-unhandled annotation
37
/** @scrutinizer ignore-unhandled */ @unlink($file->getPathname()); //remove old
If you suppress an error, we recommend checking for the error condition explicitly:
// For example instead of@mkdir($dir);// Better useif(@mkdir($dir)===false){thrownew\RuntimeException('The directory '.$dir.' could not be created.');}
Loading history...
38
39
return true;
40
}
41
42
/**
43
* {@inheritdoc}
44
*/
45
public function delete(File $file): bool
46
{
47
$this->filesystem->delete($file->getName());
48
49
return true;
50
}
51
52
/**
53
* @param string $key
54
* @param UploadedFile $file
55
* @throws RuntimeException
56
*/
57
protected function uploadToFlysystem(string $key, UploadedFile $file): void
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths