Augmenting Valinor with Property Hooks
By Oscar Merida
Each release of PHP bring new capabilities to enhance our capabilities or reduce boilerplate code. PHP 8.4 introduced property hooks for handling getting and setting object properties without having to create a ton of getter and setter methods. This month, we’ll see how we can add these features to our Spacetraders client. First, we upgrade Valinor, update Docker to support PHP 8.4, learn how property hooks work, and then use Rector to automatically add them to value objects. by Oscar Merida
This article was originally published in the March 2026 issue of PHP Architect magazine. To read the complete article please subscribe or purchase the complete issue.



Leave a comment
Use the form below to leave a comment: