On 11 December 2025 23:37:06 GMT, Morgan <[email protected]> wrote: >On 2025-12-12 11:21, Rowan Tommins [IMSoP] wrote: >> function foo() { >> static $a = 1; // OK >> static $b = $a; // Fatal error: Constant expression contains invalid >> operations >> } > >Though this example is legal since 8.3.
Oh, I must have had the wrong version selected on 3v4l when I tested it. Thanks for pointing that out. I guess the point stands that we *could* use it, if we really wanted to avoid deciding how ambiguous scope worked. Rowan Tommins [IMSoP]
