httpful
httpful copied to clipboard
Templating broken with unset
Requests had a statement, at the end of the send
method, to unset($this->_ch)
. $_ch holds the curl object. Under PHP 8.x, accessing/setting undefined class properties throws a warning. So when using the template abilities, subsequent send operations would generate a warning. The fix was to set $this->_ch = null;
.