PHP Fatal error in SAML2Authenticate.php

I’m trying to implement SSO With Active Directory’s ADFS according to this document the only one i could find.
When all settings is done I got http:500 error on client side, and php error on CRM server:
“PHP Fatal error: Can’t use method return value in write context in /var/www/html/modules/Users/authentication/SAML2Authenticate/SAML2Authenticate.php”
I can’t see any packets moving between client/CRMserver and ADFS-server so i assume the problem is only on CRM-server.
My SuiteCRM host is Centos 7.3 +apache 2.4.6 + php 5.4.16 + SuiteCRM 7.8.5
How can i investigate this issue? some settings or system/php packages missing? Is it possible to make this error more verbose?
Any hints, directions and suggestions are gratefully appreciated.
Thanks