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

Cart has a deprecated constructor #107

Open
elkebe opened this issue Aug 24, 2017 · 2 comments
Open

Cart has a deprecated constructor #107

elkebe opened this issue Aug 24, 2017 · 2 comments

Comments

@elkebe
Copy link

elkebe commented Aug 24, 2017

getting following error with fresh installation of Swipestripe on Silverstripe 3.6.1:
"[Deprecated] Methods with the same name as their class will not be constructors in a future version of PHP; Cart has a deprecated constructor"
Cart.php > line: 11 "class Cart extends Extension {"

@intotheweb101
Copy link

Hello @elkebe

I managed to fix this by changing the name of the cart function

The only other change you will have to make is to change all the occurrences in the template files where you call the cart.

I will submit a pull request in the next few days.

Thanks

@digital-genba
Copy link

*crickets*

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

No branches or pull requests

3 participants