Skip to content

Login error because of non-nullable default values #165

@vpashovski

Description

@vpashovski

There is an error when login to profile.

Error: Typed property Gigya\GigyaIM\Helper\CmsStarterKit\user\GigyaProfile::$photoURL must not be accessed before initialization in /home/dev/www/vendor/gigya/magento2-im/Helper/CmsStarterKit/user/GigyaProfile.php:370
Stack trace:

This error is because there are a lot of properties that are not set default to null but from Gigya API we receive null as a value.

The problem is from this refactoring aba78ba and is not only in GigyaProfile class, it appears to all classes under CmsStarterKit.

I tried to fix it with patch, but we got different error for different user and not sure if I can fix it for all patches.

Using Magento 2.4.8-p3, PHP 8.4 and Gigya 6.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions