Hey Volker,

> On 8. Jun 2025, at 19:17, Volker Dusch <vol...@tideways-gmbh.com> wrote:
> 
> a) From the "ProductFromDB" i get:
> 
> > Fatal error: Uncaught TypeError: LazyProduct::$category::get(): Return 
> > value must be of type Category, none returned in ...
> 
> I assume you're missing a return statement here? Or is there something I'm 
> missing?
> 
> d) PositivePoint
> 
> Example doesn't compile against 8.4, master, or against 
> NickSdot:readonly-hooks
> 
> Can you make this a script that runs and shows expected output so that 
> readers don't have to assume this is supposed to do or run it?

Unfortunate typos in the RFC text. I can’t yet update the RFC text myself, but 
we will make sure they will be fixed shortly!

Meanwhile, you can find the full running code for both examples here:

NickSdot:readonly-hooks/Zend/tests/property_hooks/readonly_rfc_example_lazy_product.phpt
NickSdot:readonly-hooks/Zend/tests/property_hooks/readonly_rfc_example_validation.phpt

Thanks for pointing these out!

— 

I leave addressing the other points to Larry.

Cheers,
Nick

Reply via email to