![]() If we can create the functionality we want with syntax we like, that not only benefits the quality of the sites we build but also helps us with the speed at which we can write code. Syntax changes give developers opportunities to write code that’s more expressive of what they are trying to do, often with fewer lines of code. PHP 8 and 8.1 both introduced changes that can be generally split into three groups: language syntax, new functionality, and execution strategy improvements. Conversations on this topic are still ongoing, so keep an eye out for updates as new versions of Drupal are released! New Language Syntax For updates like Fibers and better JIT performance, be sure to use version 8.1 (as opposed to the minimum PHP version needed by Drupal 10). It’s also relevant to note that Drupal 10 specifically requires version 8.0.2, not version 8.1. The short answer is that Drupal 10 is requiring a PHP upgrade to enforce requirements imposed by Symfony 6. Why Upgrade to PHP 8?īefore discussing the features of PHP 8, it’s important to understand why you will want to make this upgrade from PHP 7 to PHP 8. To make the most of your PHP upgrade, learn about all of the new and exciting features of this programming language. I’ll highlight some of the benefits that apply to many sites, but especially how it may apply to Drupal. Thanks to PHP 8, Drupal 10 can now use tools that will enable continued growth and enhanced performance. Upgrading to PHP 8 will be beneficial to any site running on PHP–however, as a Drupal developer, I’m particularly excited about how this will impact Drupal 10. PHP 8 includes improvements that show a clear desire to modernize, as well as capabilities of other popular languages that developers will appreciate. The reality is this language is not going anywhere, and there are many benefits of upgrading to PHP 8. Due to wide adoption and decades of maintaining legacy functionality, updating PHP to include newer features and runtime improvements takes significant time and consideration. ![]() It might not be as ancient as COBOL or Smalltalk, but it’s a dinosaur relative to the new generation of programming languages like Rust, Julia, or Typescript. Let’s be honest, PHP is an old language, relatively speaking.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |