Skip to content

Presenter::getSession Return type extension #19

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

Merged
merged 2 commits into from
May 1, 2018

Conversation

adaamz
Copy link
Contributor

@adaamz adaamz commented Apr 30, 2018

Hi,
we can resolve returned type of Nette\Application\UI\Presenter::getSession method if we know passed argument $namespace. If argument is not specified or is null then it is whole Nette\Http\Session otherwise Nette\Http\SessionSection is returned.

@ondrejmirtes
Copy link
Member

Cool, thanks 😊

@ondrejmirtes ondrejmirtes merged commit 1442bf2 into phpstan:master May 1, 2018
@@ -0,0 +1,35 @@
<?php declare(strict_types = 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong file name. Suffix .php is missing

@adaamz adaamz deleted the patch-2 branch March 14, 2019 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants