Skip to content

Instantly share code, notes, and snippets.

@topdown
Created January 14, 2012 01:16
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 topdown/1609722 to your computer and use it in GitHub Desktop.
Save topdown/1609722 to your computer and use it in GitHub Desktop.
Fix code completion for phpBB3 in phpStorm
<?php
// Open phpBB3 root/common.php
// Add doc blocks above
$cache = new cache();
$db = new $sql_db();
// So they look like this
/** @var $cache acm */
$cache = new cache();
/** @var $db dbal_mysql */
$db = new $sql_db();
// This should provide code completion for most if not all query functions in phpBB3 and also cache functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment