Problem/Motivation

  • Typehinting will be required before drupal:10.0.0.

Issue fork cloud-3191583

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

yas created an issue. See original summary.

yas’s picture

aadil.addweb’s picture

Assigned: Unassigned » aadil.addweb

aadil.addweb’s picture

Title: Add function's return type declaration (OpenStack) » 3191583-add-functions-return-type-declaration-openstack
Status: Active » Needs review
StatusFileSize
new160.28 KB
yas’s picture

Title: 3191583-add-functions-return-type-declaration-openstack » Add function's return type declaration (OpenStack)
aadil.addweb’s picture

StatusFileSize
new170.21 KB
yas’s picture

aadil.addweb’s picture

Status: Needs work » Needs review
StatusFileSize
new171.26 KB

@yas

I've added return type in all above methods which you added in your previous comment.

We can't add here https://git.drupalcode.org/project/cloud/-/blob/3.x/modules/cloud_service_providers/openstack/src/Form/OpenStackInstanceEditForm.php#L383 as it returns mixed type (array or boolean).

Please review the updated patch.

Thanks

yas’s picture

Status: Needs review » Needs work

@binoliaddweb

Thank you for the update. Please check my above comments. Thanks.

aadil.addweb’s picture

Status: Needs work » Needs review
StatusFileSize
new175.04 KB

@yas

Thank you for your review.

I've changed the getFloatingIpByIpLookup method's logic in OpenStackInstanceEditForm.php.

Please review the updated patch.

Thanks

yas’s picture

Status: Needs review » Needs work

@binoliaddweb

Thank you for the refactoring. It looks good to now but please modify the PhpDoc comment. Please see my above comment. Thanks

aadil.addweb’s picture

Status: Needs work » Needs review
StatusFileSize
new175.09 KB

@yas

Thank you for your review.

I changed the Phpdoc comment. Please review the updated patch.

Thanks

yas’s picture

Status: Needs review » Reviewed & tested by the community

@binoliaddweb

Thank you for the update. Now everything looks good. I'll merge the patch to 3.x and close this issue as Fixed.

  • yas committed ccede28 on 3.x authored by binoli.addweb
    Issue #3191583 by binoli.addweb, yas: Add function's return type...

yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.