Problem/Motivation

PHP warnings during static code analysis using phan with messages:
"Call with 2 arg(s) to \drupal_process_form($form_id, &$form, &$form_state) which requires 3 arg(s) defined at jjbos-platform/docroot/includes/form.inc:867" in includes/common.inc

"Expected an object instance when accessing an instance property, but saw an expression $pane with type array" in panels.module

Also there is a use of depricated function drupal_render_form in in includes/common.inc

Comments

Dmitrii_Zadorozhnyi created an issue. See original summary.

Dmitrii_Zadorozhnyi’s picture

StatusFileSize
new1.14 KB

I would suggest to apply a patch.

liam morland’s picture

Issue tags: -PHP 7 PHP 8
joelpittet’s picture

Adding this to the release plan #3157069: Plan for Panels 7.x-3.11

joelpittet’s picture

Status: Needs review » Needs work

Thanks for spotting that code, the code in panels_allowed_layouts::set_allowed appears to never be called.

if (!is_object($pane)) { it is always supposed to be an object, maybe it would be better to track down (via watchdog log or something) if that code is not an array and report it than to skip it?

joelpittet’s picture

joelpittet’s picture

japerry’s picture

Status: Needs work » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.