- } elseif ( $retval === null ) {
- // Null was returned. Error.
- throw new MWException(
- 'Detected bug in an extension! ' .
- "Hook $func failed to return a value; " .
- 'should return true to continue hook processing or false to abort.'
- );
- } elseif ( !$retval ) {