Pretty simple fix here, but FlagServiceInterface::getFlagById($id) indicates that $id is an integer but it's actually expected to be a string.

Comments

rbayliss created an issue. See original summary.

rbayliss’s picture

Status: Active » Needs review
StatusFileSize
new526 bytes
martin107’s picture

StatusFileSize
new939 bytes

Yes I agree Id is string

In reviewing this patch I typed

phpcs --standard=Drupal src/FlagServiceInterface.php

... I want to fix another minor cs error.

I hope you don't mind me shamelessly expanding the scope of the issue.

rbayliss’s picture

Looks relevant to me.

socketwench’s picture

Status: Needs review » Reviewed & tested by the community

Yep, agreed on both fixes.

  • rbayliss authored b7c932d on 8.x-4.x
    Issue #2943331 by rbayliss, martin107, socketwench: Fix incorrect...
socketwench’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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