PHP 8.0 compatibility issue - Using a string as the assertion passed to assert()

Created on 20 October 2022, about 2 years ago
Updated 19 October 2024, about 1 month ago

FILE: ...tests/modules/flag_event_test/src/EventSubscriber/FlagEvents.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
62 | ERROR | Using a string as the assertion passed to assert() is
| | deprecated since PHP 7.2 and removed since PHP 8.0.
| | Found: '$event->getFlagging()->getFlag()->id() !==
| | $flag->id()'
77 | ERROR | Using a string as the assertion passed to assert() is
| | deprecated since PHP 7.2 and removed since PHP 8.0.
| | Found: '$flagging->getFlag()->id() != $flag->id()'
----------------------------------------------------------------------

๐Ÿ› Bug report
Status

Needs work

Version

4.0

Component

Miscellaneous

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia meet_bhanvadia Morbi

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024