Skip to content

Dead/broken code in apigee_edge_user_presave() #1154

@mxr576

Description

@mxr576

Description

PHPStorm warns that the following code is incorrect, because $user_developer->convertUser() returns \Drupal\apigee_edge\Structure\UserToDeveloperConversionResult() and not a developer interface.

            $developer = $user_developer->convertUser($account);
            $developer->setDeveloperId($developer_id);
            $developer->enforceIsNew(FALSE);

It also occurred to me if this code is dead or how this potentially fatal error has not been recognized so far.

Apigee Info

N/A

Steps to Reproduce

N/A

Actual Behavior

N/A

Expected Behavior

N/A

Screenshots

N/A

Notes

N/A

Version Info

4.0.2

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions