Public bug reported: Mahara: 22.10.0 DB: Postgres 14.3 OS: Linux 20.04 Browser: n/a
The use of "mixed" type is supported in PHP 8.0+. It was introduced in this file: https://reviews.mahara.org/c/mahara/+/12921/28/htdocs/lib/applicationset.php with 2 functions: 1. current() : mixed 2. key() : mixed With PHP 7.4, when configuring institutions with Moodle integration (XML-RPC for example), the following error is received: "PHP message: [WAR] 40 (lib/errors.php:529) [TypeError]: Return value of ApplicationSet::current() must be an instance of mixed, instance of Application returned at /var/www/site/lib/applicationset.php:45 A type should not be set for these functions until it's fully implemented for PHP 8.0+. I only found those 2 instances in Mahara 22.10 ** Affects: mahara Importance: Undecided Status: New -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: mahara-contributors https://bugs.launchpad.net/bugs/2004137 Title: Mahara 22.10 - PHP 8.0 compatibility causing error with PHP 7.4 Status in Mahara: New Bug description: Mahara: 22.10.0 DB: Postgres 14.3 OS: Linux 20.04 Browser: n/a The use of "mixed" type is supported in PHP 8.0+. It was introduced in this file: https://reviews.mahara.org/c/mahara/+/12921/28/htdocs/lib/applicationset.php with 2 functions: 1. current() : mixed 2. key() : mixed With PHP 7.4, when configuring institutions with Moodle integration (XML-RPC for example), the following error is received: "PHP message: [WAR] 40 (lib/errors.php:529) [TypeError]: Return value of ApplicationSet::current() must be an instance of mixed, instance of Application returned at /var/www/site/lib/applicationset.php:45 A type should not be set for these functions until it's fully implemented for PHP 8.0+. I only found those 2 instances in Mahara 22.10 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/2004137/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

