Skip to content

Instantly share code, notes, and snippets.

@geerteltink
Created September 15, 2016 09:31
Show Gist options
  • Save geerteltink/35f0741f4fadf277ed9ab92196eb23eb to your computer and use it in GitHub Desktop.
Save geerteltink/35f0741f4fadf277ed9ab92196eb23eb to your computer and use it in GitHub Desktop.
.phpstorm.meta.php
<?php
/**
* @link https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Advanced+Metadata
*/
namespace PHPSTORM_META {
/** @noinspection PhpUnusedLocalVariableInspection */
/** @noinspection PhpIllegalArrayKeyTypeInspection */
$STATIC_METHOD_TYPES = [
\Interop\Container\ContainerInterface::get('') => [
'config' instanceof \ArrayObject,
],
\Psr\Http\Message\ServerRequestInterface::getAttribute('') => [
\PSR7Session\Http\SessionMiddleware::SESSION_ATTRIBUTE instanceof \PSR7Session\Session\SessionInterface,
],
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment