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

Update InventoryData.php to work with both return types #1600

Merged
merged 2 commits into from
Oct 31, 2019

Conversation

southerncomputer
Copy link
Contributor

Update InventoryData.php to work with both return types: deprecated and inventorydatainterface...

Remove return type since it can be either Deprecation or InventoryDataInterface..
@rbayet
Copy link
Collaborator

rbayet commented Oct 30, 2019

Self-note: if validated, squash and merge.

@rbayet rbayet requested review from romainruaud and rbayet and removed request for rbayet October 30, 2019 06:36
@rbayet
Copy link
Collaborator

rbayet commented Oct 30, 2019

@romainruaud Any philosophical requirement to also change the PHPdoc return type ?

@romainruaud
Copy link
Collaborator

I did not see anything non-working on this piece of code. Removing the return type should not break anything either.

But why do you want to remove it exactly @southerncomputer ? what's the use case ?

@southerncomputer
Copy link
Contributor Author

We were having extremely long reindex times with the buggy MSI implementation in ee 2.3.3 - so we removed that library and only have cataloginventory which results in Deprecated::Class which is not compatible with inventoryinterface return type.. Throws an error with php 7.3.11 :(

@romainruaud
Copy link
Collaborator

Okay then it could be due to PHP 7.3 :)

We'll try to merge this one asap

@romainruaud romainruaud merged commit dd48213 into Smile-SA:2.8.x Oct 31, 2019
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.

3 participants