Skip to content

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #29969
License MIT
Doc PR -

Added test fixture for multi param, no param type and multi spaces as well.

BTW, I didn't understand why there was a positive lookbehind on the current regex. Looks useless to me and tests passes without it.

@fancyweb fancyweb changed the title [Debug][DebugClassLoader] Match callable() type for parameters not defined in sub classes [WIP][Debug][DebugClassLoader] Match callable() type for parameters not defined in sub classes Jan 25, 2019
@fancyweb fancyweb force-pushed the match-callable-type-with-parentheses branch from 2957e8b to 89c89c9 Compare January 26, 2019 11:58
@fancyweb
Copy link
Contributor Author

Actually the current positive lookbehind on space must be kept for BC. It is useful since we consider that a type can contain a "$". It was just not tested.

I added more test cases. Especially one that check that defined parameters in sub classes actually doesn't trigger the deprecation.

The only type that can not be matched with this implementation is callable(.

@fancyweb fancyweb changed the title [WIP][Debug][DebugClassLoader] Match callable() type for parameters not defined in sub classes [Debug][DebugClassLoader] Match callable() type for parameters not defined in sub classes Jan 26, 2019
Copy link
Contributor

@GuilhemN GuilhemN left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍
I think fabbot should be fixed but it's just CS.

@fancyweb
Copy link
Contributor Author

fabbot patch should not be applied or it will test less cases with different spaces.

@nicolas-grekas nicolas-grekas added this to the next milestone Jan 26, 2019
@fabpot fabpot closed this Jan 27, 2019
@fabpot fabpot force-pushed the match-callable-type-with-parentheses branch from 89c89c9 to 0f94713 Compare January 27, 2019 10:32
@fabpot
Copy link
Member

fabpot commented Jan 27, 2019

Something went wrong when merging this pull request. @fancyweb Can you push your code again please?

@fabpot
Copy link
Member

fabpot commented Jan 27, 2019

Should also be rebased on 4.2, right?

fabpot added a commit that referenced this pull request Jan 27, 2019
…meters not defined in sub classes (fancyweb)

This PR was merged into the 4.3-dev branch.

Discussion
----------

[Debug][DebugClassLoader] Match callable() type for parameters not defined in sub classes

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #29969
| License       | MIT
| Doc PR        | -

Added test fixture for multi param, no param type and multi spaces as well.

BTW, I didn't understand why there was a positive lookbehind on the current regex. Looks useless to me and tests passes without it.

Commits
-------

89c89c9 [Debug][DebugClassLoader] Match callable() type for parameters not defined in sub classes
@fancyweb
Copy link
Contributor Author

Just force repushed but it looks like the code was merged on master.

@nicolas-grekas said this should be a new feature (so master branch) on the linked issue.

@nicolas-grekas
Copy link
Member

It's been merge on master, right, so all is fine?

@fancyweb
Copy link
Contributor Author

Yes => 3659e32

@nicolas-grekas nicolas-grekas modified the milestones: next, 4.3 Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants