Skip to content

Instantly share code, notes, and snippets.

@andkirby
Created July 29, 2016 15:14
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 andkirby/21beed0b38e6685c3783f7ebef4ca842 to your computer and use it in GitHub Desktop.
Save andkirby/21beed0b38e6685c3783f7ebef4ca842 to your computer and use it in GitHub Desktop.
Symfony console .phpstorm.meta.php file for helpers. Actual for v3.1.2.
<?php
namespace PHPSTORM_META { // we want to avoid the pollution
/** @noinspection PhpUnusedLocalVariableInspection */
/** @noinspection PhpIllegalArrayKeyTypeInspection */
$STATIC_METHOD_TYPES = [
\Symfony\Component\Console\Command\Command::getHelper('') => [
'question' instanceof \Symfony\Component\Console\Helper\QuestionHelper,
'process' instanceof \Symfony\Component\Console\Helper\ProcessHelper,
'debug_formatter' instanceof \Symfony\Component\Console\Helper\DebugFormatterHelper,
'descriptor' instanceof \Symfony\Component\Console\Helper\DescriptorHelper,
'formatter' instanceof \Symfony\Component\Console\Helper\FormatterHelper,
'input_aware' instanceof \Symfony\Component\Console\Helper\InputAwareHelper,
'symfony_question' instanceof \Symfony\Component\Console\Helper\SymfonyQuestionHelper,
],
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment