Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

[Analyzer] Return and Yield in one Method #237

Closed

Conversation

Lexty
Copy link
Contributor

@Lexty Lexty commented Oct 12, 2016

Hey!

Type: new feature

Link to issue: #185

This pull request affects the following components (please check boxes):

  • Core
  • Analyzer
  • Compiler
  • Control Flow Graph
  • Documentation

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the Contributing Guidelines.
  • I have checked that another pull request for this purpose does not exist.
  • I wrote some tests for this PR.

Small description of change:
Adds a new Analyzer that raises a notice for using return and yield statements in a one method.
Also there are small changes in PHPSA\Analyzer\Helper\ResolveExpressionTrait (added findStatement method and changed findReturnStatement method).

This is my last PR for the hacktoberfest label. Next will try something else.
Thanks.

Copy link
Owner

@ovr ovr left a comment

Choose a reason for hiding this comment

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

This PR will w8th #186, because I am working on it, finishing test, just w8th before I will finish it

@Lexty Lexty force-pushed the 185-analyzer-return-and-yield-in-one-method branch from 149408f to 930c813 Compare October 12, 2016 05:52
@Lexty
Copy link
Contributor Author

Lexty commented Oct 12, 2016

Well I'll wait. I like this project for quick response. Thanks!

@ovr
Copy link
Owner

ovr commented Oct 19, 2016

@Lexty A added some methods and tests related your PR in master
Can you rebase it and finish this PR?
Thanks

@ovr ovr closed this Oct 31, 2016
@ovr
Copy link
Owner

ovr commented Oct 31, 2016

Thanks @Lexty for PR, I am going to close it to create another PR to rebase and fix it
Thanks 👍 😸

And happy Halloween day :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants