Skip to content

Instantly share code, notes, and snippets.

@johnnywoo
Created June 17, 2015 14:37
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 johnnywoo/e7198234b25e40674809 to your computer and use it in GitHub Desktop.
Save johnnywoo/e7198234b25e40674809 to your computer and use it in GitHub Desktop.
<?php
namespace PHPSTORM_META {
/** @noinspection PhpUnusedLocalVariableInspection */
/** @noinspection PhpIllegalArrayKeyTypeInspection */
$STATIC_METHOD_TYPES = [
\Zend_Form_Element::getValidator('') => [
'Db_NoRecordExists' instanceof \Zend_Validate_Db_NoRecordExists,
],
];
}
@tristanpemble
Copy link

try this:

<?php
namespace PHPSTORM_META {
    /** @noinspection PhpUnusedLocalVariableInspection */
    /** @noinspection PhpIllegalArrayKeyTypeInspection */
    $STATIC_METHOD_TYPES = [
        new \Zend_Form_Element => [
            'Db_NoRecordExists' instanceof \Zend_Validate_Db_NoRecordExists,
        ],
        \Zend_Form_Element::getValidator('') => [
            'Db_NoRecordExists' instanceof \Zend_Validate_Db_NoRecordExists,
        ],
    ];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment