Introduction to PHP 8 Tricks
Learn about the new functional differences introduced in PHP 8 that help developers avoid traps while developing applications.
In this section, we are taken into the dark corners of PHP 8: the places where backward-compatibility breaks exist. This part gives us insight into how to avoid problems before migrating an existing application to PHP 8. We will learn what to look for in our existing code that could cause it to stop working after a PHP 8 upgrade. Once we master the topics presented in this part of the course, we will be well-equipped to modify existing code in such a manner that it continues to function normally following a PHP 8 upgrade.
The following chapters are included in this section:
Discovering Potential OOP Backward-Compatibility Breaks
In this chapter, we will be introduced to new PHP 8 features specific to OOP. The chapter provides us with plenty of short code examples that clearly illustrate the new features and concepts. This chapter is critical in helping us quickly take advantage of the power of PHP 8 as we adapt the code examples for our own practice. The focus of this chapter is on situations where object-oriented code might break after a PHP 8 migration.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy