-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object of class stdClass could not be converted to string #1391
Comments
Hi Seldaek, If on line 184 I
|
can you |
I am still also getting the issue using monolog 2.0.1, I believe this is because e1af546 only fixed normalizeException in |
@sanishmfod oh sorry missed that one as it was only present in 2.x, should be fixed now in master. |
I have same issue using monolog of version 2.0.2,
SoapFault: <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Недостаточно баллов</faultstring>
<detail>
<ns3:FaultResponse xmlns:ns3="http://api.direct.yandex.com/v5/general">
<requestId>2577205305276726399</requestId>
<errorCode>152</errorCode>
<errorDetail>Недостаточно баллов для выполнения операции</errorDetail>
</ns3:FaultResponse>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
|
When logging a SoapFault with a
details
property that is not a string you get the errorObject of class stdClass could not be converted to string
.The issue is on this line : https://github.com/Seldaek/monolog/blob/2.0.0/src/Monolog/Formatter/LineFormatter.php#L184
An example SoapFault which causes this problem is below :
The text was updated successfully, but these errors were encountered: