From: <php...@li...> - 2023-02-08 19:58:50
|
Good day - I'm upgrading an application that uses JavaBridge to PHP 8.1. When I do, the java.inc file errors on "Return type of java_objectIterator::current() should either be compatible with Iterator::current() ...." basically indicating that JavaBridge is overriding a PHP built-in class/interface (Iterator). But in PHP 8, return types of built-in classes/interfaces are declared, and therefore return types of their implementations/extensions also have to be declared. Is there a version of the java.inc file that takes this into account for PHP 8.1 compatibility, or do you recommend that the file be manually changed, or another course of action? Thank you! |