Fix for PHP 8+

Operands must be boolean.

TypeError: Unsupported operand types: bool | array in override_node_options_form_alter() (line 241 of /vagrant/www/ethos7/sites/all/modules/contrib/override_node_options/override_node_options.module).

CommentFileSizeAuthor
#2 3274297.patch1.83 KBdjdevin
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

djdevin created an issue. See original summary.

djdevin’s picture

StatusFileSize
new1.83 KB
cindytwilliams’s picture

Status: Needs review » Reviewed & tested by the community

This patch applies, and fixes the error for me on PHP. 8.0

calbasi’s picture

I can confirm that this patch solves the issue

aschiwi’s picture

Thanks for the patch, solved the problem for us!

ronino’s picture

Works for me, too. Thanks!

edvanleeuwen’s picture

Please merge with dev.

anybody’s picture

Priority: Normal » Major

Confirming RTBC! Now that PHP 7.x is EOL, could we PLEASE have a new stable release with this?

This pops up on all sites!

anybody’s picture

Issue tags: +PHP 8.0
anybody’s picture

Added an alternative approach using !empty() in the MR, so the maintainers may decide, which one they like more.

opdavies’s picture

I prefer the approach in #2, but the patch doesn't apply to the 7.x-1.x branch so it may need additional work.

  • opdavies committed 7e7d09d1 on 7.x-1.x authored by djdevin
    Issue #3274297 by Anybody, djdevin: TypeError: Unsupported operand types...
opdavies’s picture

Status: Reviewed & tested by the community » Fixed

I've re-applied the changes and committed them to the 7.x-1.x branch.

opdavies’s picture

Tagged as 7.x-1.15.

Status: Fixed » Closed (fixed)

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