platform icon indicating copy to clipboard operation
platform copied to clipboard

ReflectionType::__toString() is deprecated

Open Briones opened this issue 4 years ago • 0 comments

Summary
I'm trying to update a crm-application setup from 3.1 to 4.1.2, and when I run the: php bin/console oro:platform:update --timeout=0 -vvv --env=prod I get the following error or warning:

PHP Deprecated:  Function ReflectionType::__toString() is deprecated in /crm-application/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/Util/ProxiedMethodReturnExpression.php on line 35

I search about it and I found this issue: https://github.com/Ocramius/ProxyManager/issues/538

So I noticed that there was a bug fix from the ocramius/proxy-manager package that was fixed in the version 2.2.1: https://github.com/Ocramius/ProxyManager/releases/tag/2.2.1

The problem seems to be that crm-application in the latest version is locked to 2.1.1, so maybe upgrading the package will resolve the problem.

Steps to reproduce
run the command in a 3.1.19 crm-application: php bin/console oro:platform:update --timeout=0 -vvv --env=prod

Actual Result

PHP Deprecated:  Function ReflectionType::__toString() is deprecated in /crm-application/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/Util/ProxiedMethodReturnExpression.php on line 35

Expected Result
No errors or warnings

Details about your environment

  • OroPlatform version: 4.1.2
  • PHP version: 7.4.5
  • Database (MySQL, PostgreSQL) version: Mysql

Briones avatar Apr 21 '20 22:04 Briones