Created
August 11, 2016 18:55
-
-
Save wandersonwhcr/e16e9dcfb2c54dafa2f84c145b0de983 to your computer and use it in GitHub Desktop.
Namespace Bug?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace One | |
{ | |
class Foo | |
{ | |
} | |
} | |
namespace Two | |
{ | |
class Foo | |
{ | |
} | |
} | |
namespace Two | |
{ | |
use One\Foo; | |
class Bar extends Foo | |
{ | |
} | |
} |
Clearer demonstration, thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP Fatal error: Cannot use One\Foo as Foo because the name is already in use in namespace-bug.php on line 19