Php – Laravel – Enums decalred in a file with another class won't load until "main" class is called
I have a file. Let's call it Foo.php. It looks like this: namespace AppHelpers; enum FooTypes: string { case A = "A"; case B = "B"; } class Foo { const BAR = "Bar"; // ... } This will work:…