czim / file-handling

File Handling Helper
MIT License
14 stars 9 forks source link

Bug in StorableFileFactory.php #15

Closed JoshMcCr-roofr closed 1 year ago

JoshMcCr-roofr commented 1 year ago

The exception thrown on line 171 has reference to '->getcode' which should be '->getCode'. This is causing this exception to always throw a code 0

throw new CouldNotRetrieveRemoteFileException(
    "Could not retrieve file from '{$url}'",
    $e->getcode(), // bug here
    $e
);
czim commented 1 year ago

Sloppy on my part, thanks for reporting this.