php-imap
php-imap copied to clipboard
Message::fromFile and Message::fromString methods cause a type error
Describe the bug
When using the Message::fromFile and Message::fromString methods in some unit tests, it causes a type error - TypeError : Cannot assign null to property Webklex\PHPIMAP\Message::$config of type array. I have noticed the Message::fromFile method is used in your unit tests so I ran some of those and they also fail.
Used config Default
Code to Reproduce
Run the unit test webklex/php-imap/tests/issues/Issue275Test.php and it will fail
Expected behavior A new message should be returned from either of these methods
Screenshots N/A
Desktop / Server (please complete the following information):
- OS: MacOs 13.2.1
- PHP: 8.1.22
- Version - v.5.5.0
- Provider - N/A