Hi!
That's annoying as I like to check the right class case on autoload to
detect mistakes.
I'm not sure I understand this right, but if I do this sounds
contradictory. I.e., if you are trying to autoload the class, you
haven't loaded it yet. If you didn't, how would you know which case is
On Tue, May 26, 2015 at 9:52 AM, Ralph Schindler
ra...@ralphschindler.com wrote:
?php
namespace foo;
function bar(){}
var_dump(bar::class); // string(7) foo\bar
?
This was not explained in the RFC at all, and had I known this I would
have voted against it personally.
How would you
?php
namespace foo;
function bar(){}
var_dump(bar::class); // string(7) foo\bar
?
This was not explained in the RFC at all, and had I known this I would
have voted against it personally.
How would you suggest it be different, if not a compile-time name
expansion for classes?
On a
On Mon, 25 May 2015 20:47:32 +0300, Marc Bennewitz dev@mabe.berlin wrote:
Hi,
I have noted that detecting a class name using ::class it will return
the called case instead of the original case.
see http://3v4l.org/97K36
That's annoying as I like to check the right class case on autoload to
On Mon, May 25, 2015 at 11:47 AM, Marc Bennewitz dev@mabe.berlin wrote:
Hi,
I have noted that detecting a class name using ::class it will return the
called case instead of the original case.
see http://3v4l.org/97K36
That's annoying as I like to check the right class case on autoload to
Hi,
I have noted that detecting a class name using ::class it will return
the called case instead of the original case.
see http://3v4l.org/97K36
That's annoying as I like to check the right class case on autoload to
detect mistakes.
Sure, class names in PHP are case-insensitive but