mirror of
https://github.com/LdesignMedia/moodle-availability_ipaddress.git
synced 2026-05-16 21:41:28 +02:00
Merge pull request #16 from LdesignMedia/86c89ftg9-fix-php-version-compat
Fix #86c89ftg9 - Remove PHP 7.4 typed properties for PHP 7.3 compatibility
This commit is contained in:
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
@@ -11,7 +11,7 @@ activity, making it accessible only to users from specified IP addresses.
|
||||
* Author: Luuk Verhoeven, [ldesignmedia.nl](https://ldesignmedia.nl/)
|
||||
* Author: Vincent Cornelis, [ldesignmedia.nl](https://ldesignmedia.nl/)
|
||||
* Min. required: Moodle 4.0
|
||||
* Supports PHP: 7.4
|
||||
* Supports PHP: 7.3+
|
||||
|
||||

|
||||

|
||||
@@ -22,6 +22,7 @@ activity, making it accessible only to users from specified IP addresses.
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
@@ -63,6 +64,6 @@ The GNU GENERAL PUBLIC LICENSE. Please see [License File](LICENSE) for more info
|
||||
|
||||
Contributions are welcome and will be fully credited. We accept contributions via Pull Requests on Github.
|
||||
|
||||
## Changelog
|
||||
### Changelog
|
||||
|
||||
See [CHANGELOG.md](CHANGELOG.md) for a full list of changes.
|
||||
|
||||
@@ -41,14 +41,14 @@ class condition extends \core_availability\condition {
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected string $ipaddresses = '';
|
||||
protected $ipaddresses = '';
|
||||
|
||||
/**
|
||||
* Predefined IP address ranges.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected array $predefinedranges = [];
|
||||
protected $predefinedranges = [];
|
||||
|
||||
/**
|
||||
* condition constructor.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<COMPATIBILITY_MATRIX>
|
||||
<PLUGIN name="availability_ipaddress">
|
||||
<PHP version="7.4" level="required"/>
|
||||
<PHP version="7.3" level="required"/>
|
||||
</PLUGIN>
|
||||
</COMPATIBILITY_MATRIX>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->component = 'availability_ipaddress';
|
||||
$plugin->version = 2026030300;
|
||||
$plugin->version = 2026031800;
|
||||
$plugin->release = '5.1.0';
|
||||
$plugin->requires = 2016120500;
|
||||
$plugin->maturity = MATURITY_STABLE;
|
||||
|
||||
Reference in New Issue
Block a user