Skip to content

Instantly share code, notes, and snippets.

@mikeschinkel
Created June 21, 2015 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeschinkel/69a3241f41ba8e895529 to your computer and use it in GitHub Desktop.
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"
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