Mejore la eficiencia del código con ganchos de propiedades

Noviembre 21, 2024
JetBrains PHPStorm 2024.3 actualiza el desarrollo de PHP con ganchos de propiedades que eliminan los getters y setters repetitivos, lo que permite un código más limpio.

Continuar leyendo en inglés:

PhpStorm by JetBrains is a sophisticated Integrated Development Environment (IDE) specifically designed for PHP and web development. It offers a range of features to enhance your coding experience, including syntax highlighting, intelligent code completion, on-the-fly error detection, built-in debugging tools, and advanced code refactoring capabilities. It also supports various web technologies like HTML, CSS, and JavaScript, making it a versatile tool for building complete web applications.

The JetBrains PhpStorm version 2024.3 release introduces property hooks, a transformative feature in modern PHP that eliminates the need for boilerplate getters and setters by enabling get and set hooks directly on properties, including promoted properties. This update streamlines coding workflows with tools like quick-fixes for replacing existing methods, automatic shorthand conversion, and code completion for hook syntax. By ensuring proper usage through syntax checks and offering efficient generation actions, PhpStorm empowers developers to write cleaner code. Ideal for modern PHP projects, this feature enhances productivity, simplifies property management, and supports the latest advancements in the PHP ecosystem.

To see a full list of what's new in version 2024.3, see our release notes.

PhpStorm is licensed per user, and is available as a commercial annual subscription license. We can supply new subscriptions, subscription renewals (including continuity discounts), lapsed renewals, and additional user licenses. See our PhpStorm licensing page for full details.

PhpStorm is available to buy in the following products: