-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Update ext/ffi parameter names #6282
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
Conversation
*/ | ||
public static function memcpy(FFI\CData $dst, $src, int $size): void {} | ||
public static function memcpy(FFI\CData $to, $from, int $size): void {} |
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.
Using $from/$to with memcpy feels a bit odd to me, but it's not too bad...
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.
I'm ok with either :)
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.
Looks good to me! As I'm not familiar with this extension, I had to think out-loud a little bit.
*/ | ||
public static function memcpy(FFI\CData $dst, $src, int $size): void {} | ||
public static function memcpy(FFI\CData $to, $from, int $size): void {} |
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.
I'm ok with either :)
No description provided.