inokufu / moodle-local_inokufu

Public Moodle Local Services Plugin for Inokufu Search technologies
0 stars 0 forks source link

Composer PHP version #1

Open AlphaUki opened 5 days ago

AlphaUki commented 5 days ago

In your Composer's dependencies, php >= 8.1.0 is required, but the version that should be used should match the minimum version supported by the latest available version of Moodle under long time support (LTS), or the PHP version supported by the oldest moodle version on which the plugin works.

In other words, currently Moodle 4.1.x is the latest LTS version available and the minimum supported version of PHP is PHP 7.4.0, so in your dependencies, PHP >= 7.4.0 should be supported.

Without this change, many platforms may not be able to use your plugin.

AlphaUki commented 4 days ago

The syntax self::get_and_cache_data('xxxx', short_cache: false) is not compatible with PHP 7.4.0.

All parameters should be specified even if they are default values, in case _shortcache is different from its default value. E.g: self::get_and_cache_data('xxxx', null, false)