8000 [Router] Cleanup by nkt · Pull Request #12183 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Router] Cleanup #12183

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

Closed
wants to merge 1 commit into from
Closed

[Router] Cleanup #12183

wants to merge 1 commit into from

Conversation

nkt
Copy link
@nkt nkt commented Oct 9, 2014
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Removed unused imports, variables, arguments.

*
* @return RouteCollection
*/
private static function includeFile($file, PhpFileLoader $loader)
private static function includeFile($file)
Copy link
Member

Choose a reason for hiding this comment

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

But this breaks backward compat and removes the possibility to use $loader from the included $file

Copy link
Author

Choose a reason for hiding this comment

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

Yep, you are right.

@stof
Copy link
Member
stof commented Oct 9, 2014

👍

@@ -39,9 +39,7 @@ public static function compile(Route $route)
{
$staticPrefix = null;
$hostVariables = array();
$pathVariables = array();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove that but $regex for example not?

Copy link
Member

Choose a reason for hiding this comment

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

It think it is because PhpStorm does not report dead assignments when the assigned value is null, and so he missed it ($staticPrefix as well btw)

fabpot added a commit that referenced this pull request Oct 13, 2014
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #12183).

Discussion
----------

[Router] Cleanup

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |
Removed unused imports, variables, arguments.

Commits
-------

5a6677d [Router] Cleanup
@fabpot fabpot closed this Oct 13, 2014
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.

5 participants
0