File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
AdobeStockImage/Model/Storage Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public function __construct(
5151 * @param string $imageUrl
5252 * @param string $destinationPath
5353 * @return string
54- * @throws AlreadyExistsException | LengthException
54+ * @throws AlreadyExistsException
5555 * @throws FileSystemException
5656 */
5757 public function execute (string $ imageUrl , string $ destinationPath = '' ) : string
@@ -60,7 +60,7 @@ public function execute(string $imageUrl, string $destinationPath = '') : string
6060 $ maxFilenameLength = self ::MAX_LENGTH ;
6161
6262 if (strlen ($ destinationPath ) > $ maxFilenameLength ) {
63- throw new \ LengthException (
63+ throw new AlreadyExistsException (
6464 __ ('Destination path is too long; must be %1 characters or less ' , $ maxFilenameLength )
6565 );
6666 }
You can’t perform that action at this time.
0 commit comments