Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/19/2020 12:50:44 PM (6 years ago)
Author:
imath
Message:

Groups: Avoid a PHP 8.0 deprecated notice about optional function arg.

The BP_Groups_Invitation_Manager->run_acceptance_action() method was wrongly using one optional arguments before a required one. As PHP 8.0 no longer accepts this practice, all arguments of the method will be required.

Fixes #8392 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-invitation-manager.php

    r12771 r12793  
    612612         * @return bool True on success, false on failure.
    613613         */
    614         abstract public function run_acceptance_action( $type = 'invite', $r  );
     614        abstract public function run_acceptance_action( $type, $r  );
    615615
    616616        /**
Note: See TracChangeset for help on using the changeset viewer.