Skip to content

Commit

Permalink
zend-gdata: fix reading error message
Browse files Browse the repository at this point in the history
fixes the test failure on php 7.4 & 8.0:
- Failed asserting that PHPUnit_Framework_Error_Notice Object (...) is an instance of class "Zend_Gdata_App_Exception".
  • Loading branch information
falkenhawk committed Oct 18, 2021
1 parent 0bdfb60 commit 198064f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zend-gdata/library/Zend/Gdata/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ public static function importString($string,

if (!$doc) {
$err = error_get_last();
$phpErrormsg = $err['message'];
$phpErrormsg = isset($err['message'][0]) ? $err['message'] : null;
// require_once 'Zend/Gdata/App/Exception.php';
throw new Zend_Gdata_App_Exception(
"DOMDocument cannot parse XML: $phpErrormsg");
Expand Down

0 comments on commit 198064f

Please sign in to comment.