Skip to content

Error when creating a letter verification #188

Open
@CLCWebsiteServices

Description

@CLCWebsiteServices

Summary

The file on which is addressed when creating a letter verification appears to have been wrote in a way that even if you don't provide a file for the letter (null) it'll still always attempt to read the contents of the variable via the Utils::tryFopen($file, 'r') function.

Expected Behavior

A check should be performed on the $file variable to detect whether it's null or not.

Current Behavior

GuzzleHttp\Psr7\Utils::tryFopen(): Argument #1 ($filename) must be of type string, null given, called in /vendor/lob/lob-php/lib/Api/LettersApi.php on line 349

Possible Solution

I have wrote a PR with a valid fix for this issue. #187

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions