What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello, I have setup a fresh b2c shop in my local, and getting following error when I run phpstan ```
Hello, I have setup a fresh b2c shop in my local, and getting following error when I run phpstan
------ -------------------------------------------------------------------------------------- Line LocaleRepository.php ------ -------------------------------------------------------------------------------------- 44 Cannot access offset 'spy_locale.id_locale' on Orm\Zed\Locale\Persistence\SpyLocale. 44 Cannot access offset 'spy_locale.locale…' on Orm\Zed\Locale\Persistence\SpyLocale. ------ --------------------------------------------------------------------------------------
I’m wondering why its not failing in travis of your b2c shop repository
Comments
-
there are two additional errors from same module
Pyz/Zed/DataImport/Business/Model
here is the complete log------ -------------------------------------------------------------------------- Line Pyz/Zed/DataImport/Business/Model/Locale/Repository/LocaleRepository.php ------ -------------------------------------------------------------------------- 44 Cannot access offset 'spy_locale.id_locale' on Orm\Zed\Locale\Persistence\SpyLocale. 44 Cannot access offset 'spy_locale.locale…' on Orm\Zed\Locale\Persistence\SpyLocale. ------ -------------------------------------------------------------------------- ------ --------------------------------------------------------------------------------------- Line Pyz/Zed/DataImport/Business/Model/ProductAttributeKey/AddProductAttributeKeysStep.php ------ --------------------------------------------------------------------------------------- 41 Cannot access offset 'spy_product…' on Orm\Zed\Product\Persistence\SpyProductAttributeKey. 42 Cannot access offset 'spy_product…' on Orm\Zed\Product\Persistence\SpyProductAttributeKey. ------ --------------------------------------------------------------------------------------- ------ --------------------------------------------------------------------------- Line Pyz/Zed/DataImport/Business/Model/ProductLabel/ProductLabelWriterStep.php ------ --------------------------------------------------------------------------- 93 Binary operation "+" between Orm\Zed\ProductLabel\Persistence\SpyProductLabel|null and 1 results in an error. ------ ---------------------------------------------------------------------------
0 -
Propel requires in some cases inline annotations to be used, in this case that the return result is an array.
Thats the problem of the find call being able to return everything.0 -
right, so this needs to be fixed in demoshop by adding those annotations? (as all of them are demoshop files)
0 -
You can see that we did the same recently: https://github.com/spryker-shop/suite/commit/d09382b9308e70936ac474328af42df98d42936c
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random