-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fixed doc param inside Query Builder #2775
fixed doc param inside Query Builder #2775
Conversation
@@ -409,7 +409,7 @@ public function getMaxResults() | |||
* 'groupBy', 'having' and 'orderBy'. | |||
* | |||
* @param string $sqlPartName | |||
* @param string $sqlPart | |||
* @param mixed $sqlPart |
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.
Should probably be string
, no?
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.
In some part of the code for example in line 530 of the same file is passed as an array not as a string right?
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.
That's because it's upcast (line 423)
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.
Yes I have seen but I thought that you can call this function with a string or with an array so I thought that mixed type is better than string inside documentation.
If It's better string
I understand but there are two ways for me to call this function for that parameter
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.
@AlessandroMinoccheri use string|string[]
or whatever matches then :-)
Obsolete as of #3836. |
Fixed a parameter documentation from string to mixed because it can be a string or an array