It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.
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...
8
9
use Http\Client\HttpAsyncClient;
10
use Http\Client\HttpClient;
11
12
/**
13
* This client is used as a placeholder for the dependency injection. It will never be used.
If you suppress an error, we recommend checking for the error condition explicitly: