Hi Am 2025-05-19 15:30, schrieb Larry Garfield:
For positional parameters, I don't see any way that they'd work or do what someone expects. So why not just block them entirely instead of relying on dynamic properties to warn-but-sorta-work?
For better or worse PHP supports numeric properties in objects and it does not seem correct to make this an artificial limitation when the behavior of numeric array keys follows the existing semantics (e.g. when casting an array to an object).
Best regards Tim Düsterhus