Skip to content

ReflectionType::__toString() is deprecated #1010

Open
@Briones

Description

@Briones

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:
Ocramius/ProxyManager#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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions