Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "deprecated" warning in php 8.2+ (incorrect variable name) #368

Merged
merged 1 commit into from
Sep 12, 2023
Merged

Fix "deprecated" warning in php 8.2+ (incorrect variable name) #368

merged 1 commit into from
Sep 12, 2023

Conversation

sdunayer
Copy link
Contributor

@sdunayer sdunayer commented Aug 5, 2023

PHP 8.2+ throws a warning ""DEPRECATED CDreation of dynamic property ..." on line 90 of Cart.php because the constructor is trying to initialize "currentItem" as opposed to "currentItemId". A careful study of all the code shows that "currentItem" is not referenced anywhere and so it would appear to be an incorrect variable name. The enclosed patch initializes the correct variable and eliminates the warning.

@vlados
Copy link

vlados commented Aug 25, 2023

When this could be merged?

@KamilMerkandi
Copy link

@darryldecode

@AidasK
Copy link
Contributor

AidasK commented Sep 12, 2023

@darryldecode This fix would be awesome!

@darryldecode darryldecode merged commit 25e347f into darryldecode:master Sep 12, 2023
@AidasK
Copy link
Contributor

AidasK commented Sep 12, 2023

MVP @darryldecode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants