Compatible with: IntelliJ IDEA PhpStorm
Jan 15, 2018
2 174
  • PHP associative array auto-completion inferred from other functions (in other files).
  • Go To key Definition.
  • Specify array keys and reference functions in phpdoc.
  • Preserve type info of object placed in an associative array.
This plugin greatly extends phpstorm's associative array completion and typing

Download plugin

Recent change notes

  • #28 Temporary workaround for memory overflow caused by circular references: set expression limit guards to 2000 for now; catch and ignore memory overflow exception; hackishly remove duplicates before resolving IDEA type so that it was just 2 types instead of 7536 duplicates
  • Fix method name completion in [$someObj, ''] - $someObj was unresolved whet it was arg with a type hint
  • General usage instructions

    Press Ctrl+Space when caret is inside quotes to get completion options for associative array keys. The plugin will analyze your code to gather info about the variable.

    Put caret on the accessed key and press Ctrl+B (or Ctrl+Left Mouse Button) to go to the definition.