Created
August 31, 2016 10:20
-
-
Save rskuipers/66c2b8e85c733915d38184aa7e40ee91 to your computer and use it in GitHub Desktop.
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 | |
// This file is not a CODE, it makes no sense and won't run or validate | |
// Its AST serves IDE as DATA source to make advanced type inference decisions. | |
namespace PHPSTORM_META { | |
$STATIC_METHOD_TYPES = [ | |
\Zend\ServiceManager\ServiceLocatorInterface::get('') => [ | |
// STATIC call key to make static (1) & dynamic (2) calls work | |
"special" instanceof \Exception, | |
// "KEY" instanceof Class maps KEY to Class | |
], | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: this can be used also with any PSR-11 container 👍