Class And Constant Confusion

no-email (Damien Seguy), Damien Seguy
Mon, 08 May 2023 00:00:00 +0000

Class names and global constant names are two distinct name spaces. It is possible to use the name of a class as a constant.
It is also possible to instanciate a class with a constant notation: that is, by omitting the parenthesis in the new call, when no arguments are needed.
This allows for very confusing lines like these ones.