I hope everyone is having a great summer and able to take some time off! After a few meh summers, we've been enjoying some 90+ degree days in Cleveland, Ohio, and it's wonderful. I always see summer as a bit of a break from the normal coding routine, a chance to get outside of our heads and clear my mind -- a bit like starting a new year. Anyone relate? This Segment is about a new feature available in PHP 8.3. But first, a word from our sponsor:
🕵️♂️ Using the PHP 8.3 Override Attribute in MagentoAs Magento developers, we're always on the lookout for tools and techniques that can make our code more robust and easier to maintain. With PHP 8.3, we've been gifted a new feature that does just that: the You might be familiar with PHP attributes already. They're those little tags wrapped in square brackets with an @ symbol, sitting above classes, methods, or properties. This provides extra info about your code without changing its execution. In fact, you've probably encountered attributes in Magento without even realizing it. For instance, there's a Now, PHP 8.3 has introduced a new attribute that I believe will significantly impact how we handle class extensions and customizations in Magento: A Practical Example of #[Override] in MagentoTo understand how the Let's say that we are extending Magento's JSON serializer to add some custom functionality:
In this code, we’re using the Let’s focus on the We’ve added two new flags to the
These changes throw better warnings when JSON is encoded, which creates more stable and predictable behavior. Now, here’s where the
💫 M.academy updatesWe are going strong on enhancements to M.academy in the back half of this year. So much so, that I think this will be the most transformative 6 months that we'll ever have. A few things coming up include:
There are also quite a few other things that we're working on behind the scenes that I'm so excited to share with you, but I'll leave them as a surprise for when they happen.
|
Save 10% on University Plan |
Save 10% on University Forever |
My mission is to install confidence in you to efficiently master Magento, saving you time and distress with learning this complex framework. Let's get back to it and do this 💪
A question for you:
When have you felt most energized, creative, or "in the zone" while working on a Magento project, and what were you doing?
|
Join Segment, M.academy's free monthly newsletter about Magento, read my thousands of developers & merchants to keep in touch with the industry. Check out previous issues of Segment by clicking the Posts tab below 👇
Aug 2024 Read by 9,000+ Magento developers.Send to a friend. Complete M.academy refresh Hey friend, It's been a few years since M.academy launched, and I thought it was time that our image got a bit of a refresh. So over the summer, I worked on a few things: A refreshed website and updated tagline: Lots of energy, bright colors, and a new focus on "mastering" Magento development rather than simply learning the fundamentals -- since there are already courses for all of those 😉 An updated look...
This hasn't been a quiet week by any means, even in Magento land. Before we get to the guts of this issue, which is all about how to debug and troubleshoot product collection issues, I need to let you know about urgent security exploit that needs to be addressed. But first, a word from our sponsor. If you are interested in order fulfillment, check out Portless: Sponsored by Portless Skip the ship, unlock cashflow and scale globally in less time Discover the future of e-commerce logistics with...
There was a big of drama with Redis the last few weeks regarding updates to its licensing, Magento 2.4.7 was released, and we got some numbers released to us about Hyvä installations. Let's get to it 😄 🥳 What's new in Magento 2.4.7 I always cover what's new and interesting with new Magento releases, and 2.4.7 was just released last week. If you want to know everything notable in this release (and skip all the boring stuff), check out my newest video which will inform you about anything new in...