Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating a letter verification #188

Open
CLCWebsiteServices opened this issue Aug 20, 2024 · 0 comments
Open

Error when creating a letter verification #188

CLCWebsiteServices opened this issue Aug 20, 2024 · 0 comments

Comments

@CLCWebsiteServices
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant