-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
Convert proxy factory auto generate mode to integer #815
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dragosprotung some small nitpickings and CS fixes to be done (I'm sending a PR that will add PHPCS to help to detect and use phpcbf
to fix them).
And please use master
as the destination branch, we'll handle the necessary backporting 😄
Thanks for you contribution 👍
* | ||
* @return self | ||
*/ | ||
public static function invalidAutoGenerateMode($value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the return type declation
[$proxyGenerator, $metadataFactory, $autoGenerate] | ||
); | ||
|
||
$this->assertAttributeSame($expected, 'autoGenerate', $proxyFactory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use self::assert*()
* @param mixed $autoGenerate | ||
* @param int $expected | ||
*/ | ||
public function testNoExceptionIsThrownForValidIntegerAutoGenerateValues($autoGenerate, $expected) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the type declaration on $expected
and : void
as return type
I changed the commit base to master and resolved in GitHub UI the conflict and this made a bit of a mess. Don't know how to have a cleaner PR. Shall I close this one and submit a new one ? |
@dragosprotung we usually use |
Usually I use rebase, but not this time. |
No description provided.