Last active
August 29, 2015 14:26
-
-
Save phlppschrr/08874b1daa94d0fc4c40 to your computer and use it in GitHub Desktop.
.phpstorm.meta.php for ProcessWire CMS
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
<?php | |
/** | |
* ProcessWire PhpStorm Meta | |
* | |
* This file is not a CODE, it makes no sense and won't run or validate | |
* Its AST serves PhpStorm IDE as DATA source to make advanced type inference decisions. | |
* | |
* @see https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Advanced+Metadata | |
*/ | |
namespace PHPSTORM_META { | |
$STATIC_METHOD_TYPES = [ | |
\wire('') => [ | |
'' == '@', | |
'config' instanceof Config, | |
'wire' instanceof ProcessWire, | |
'log' instanceof WireLog, | |
'notices' instanceof Notices, | |
'sanitizer' instanceof \Sanitizer, | |
'database' instanceof \WireDatabasePDO, | |
'db' instanceof \DatabaseMysqli, | |
'cache' instanceof \MarkupCache, | |
'modules' instanceof \Modules, | |
'procache' instanceof \ProCache, | |
'fieldtypes' instanceof \Fieldtypes, | |
'fields' instanceof \Fields, | |
'fieldgroups' instanceof \Fieldgroups, | |
'templates' instanceof \Templates, | |
'pages' instanceof \Pages, | |
'permissions' instanceof \ Permissions, | |
'roles' instanceof \Roles, | |
'users' instanceof \Users, | |
'user' instanceof \User, | |
'session' instanceof \Session, | |
'input' instanceof \WireInput, | |
'languages' instanceof \Languages, | |
'page' instanceof \Page, | |
] | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment