Codeception / lib-innerbrowser

InnerBrowser
MIT License
79 stars 19 forks source link

[BUG] : prevent "Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, null given" #47

Closed Fahl-Design closed 2 years ago

Fahl-Design commented 2 years ago

Bug

When a request was made but Content-Type header was set, and an other normal exception is thrown

normal exception is not displayed because:

Trace

Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, null given in /var/www/html/vendor/codeception/lib-innerbrowser/src/Codeception/Lib/InnerBrowser.php:101
Stack trace:
#0 /var/www/html/vendor/codeception/lib-innerbrowser/src/Codeception/Lib/InnerBrowser.php(101): explode(';', NULL)
#1 /var/www/html/vendor/codeception/codeception/src/Codeception/Subscriber/Module.php(77): Codeception\Lib\InnerBrowser->_failed(Object(Codeception\Test\Cest), Object(PHPUnit\Framework\ExceptionWrapper))