signnow / SignNowPHPSDK

The Official SignNow PHP SDK library for interacting with SignNow REST API. Sign documents, request e-signatures, and build role-based workflows with multiple signers using this client.
https://www.signnow.com/developers
MIT License
9 stars 12 forks source link

Type error in SplFileInfoItem #38

Open lubosdz opened 1 year ago

lubosdz commented 1 year ago

Executing basic code sample:

$entityManager->create(new DocumentUpload(new \SplFileInfo($filePath)));

throws type error with PHP 8.0.13 e.g. if file access denied:

TypeError
stream_get_meta_data(): Argument #1 ($stream) must be of type resource, bool given
in ....\app\vendor\signnow\rest-entity-manager\src\EntityManager\Annotation\GuzzleRequestBody\Multipart\SplFileInfoItem.php

on line #27.