Created
June 21, 2015 16:36
-
-
Save mikeschinkel/69a3241f41ba8e895529 to your computer and use it in GitHub Desktop.
PhpStorm incorrect flags class "Object" inside a Namespace with "Expected Object, got Object"
This file contains 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
namespace Whatever { | |
class Object { | |
/** | |
* @param Object $object | |
*/ | |
function foo( $object ) { | |
} | |
function bar() { | |
$object = new Object(); | |
$this->foo( $object ); // Inspection flags $object with "Expected Object, got Object" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment