Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Factory methods #28

Open
dg opened this issue Sep 30, 2018 · 0 comments
Open

Support for Factory methods #28

dg opened this issue Sep 30, 2018 · 0 comments

Comments

@dg
Copy link

dg commented Sep 30, 2018

Is possible to add .phpstorm.meta.php file into plugin? It is decribed here https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Advanced+Metadata#PhpStormAdvancedMetadata-Packagingmetadata/stubfilesintoplugin

Content of file:

<?php

namespace PHPSTORM_META {

	override(
		\Nette\DI\Container::getService(0),
		map( [
			'application' => \Nette\Application\Application::class,
		])
	);

	override(
		\Nette\DI\Container::getByType(0),
		map([
			'' => '@',
		])
	);

	override(\Nette\Utils\Arrays::get(0), elementType(0));
	override(\Nette\Utils\Arrays::getRef(0), elementType(0));
	override(\Nette\Utils\Arrays::grep(0), type(0));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants