• Resolved ThomTra

    (@thomtra)


    To surpress warnings after upgrade to php 8 i removed the default value for the parameter $field in function get_one_by:

    old:
    public function get_one_by( $field=’id’, $val, $return_type = OBJECT, $include_stats = false, $exclude_disabled=true ) {

    new:
    public function get_one_by( $field, $val, $return_type = OBJECT, $include_stats = false, $exclude_disabled=true ) {

    In PHP8 Parameters with default value should stay on the end otherwise it makes no sense.

    Would like to see these change in your next update 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP 8 Compatibility’ is closed to new replies.