Skip to content

Commit 353e4dd

Browse files
author
Chris Gårdenberg
committed
chore: PHP 8.1 and WP 6.0 requirements
1 parent 33234df commit 353e4dd

9 files changed

Lines changed: 194 additions & 164 deletions

File tree

PLUGIN-CHECKSUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aba35655ceb67555bb5c2580fbcd8cb6
1+
7fe2fe0a83fb2450129bed8f524c65b1

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"minimum-stability": "dev",
1111
"prefer-stable": true,
1212
"require": {
13-
"php": ">=7.3",
13+
"php": ">=8.1",
1414
"composer/installers": "~2"
1515
},
16-
"version": "2.22.0"
16+
"version": "5.0.0"
1717
}

eduadmin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
* Version: 4.2.3
1313
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
1414
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
15-
* Requires at least: 5.8
16-
* Tested up to: 6.4
17-
* Requires PHP: 7.0
15+
* Requires at least: 6.0
16+
* Tested up to: 6.5
17+
* Requires PHP: 8.1
1818
* Author: Chris Gårdenberg, MultiNet Interactive AB
1919
* Author URI: https://www.multinet.com
2020
* License: GPL3

libraries/class-recursive-arrayaccess.php

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
* @package WordPress
2121
* @since 3.6.0
2222
*/
23-
2423
class Recursive_ArrayAccess implements ArrayAccess {
2524
/**
2625
* Internal data collection.
@@ -62,8 +61,7 @@ public function __clone() {
6261
*
6362
* @return array
6463
*/
65-
#[\ReturnTypeWillChange]
66-
public function toArray() {
64+
public function toArray() : array {
6765
$data = $this->container;
6866
foreach ( $data as $key => $value ) {
6967
if ( $value instanceof self ) {
@@ -85,8 +83,7 @@ public function toArray() {
8583
*
8684
* @return boolean true on success or false on failure.
8785
*/
88-
#[\ReturnTypeWillChange]
89-
public function offsetExists( $offset ) {
86+
public function offsetExists( $offset ) : bool {
9087
return isset( $this->container[ $offset ] );
9188
}
9289

@@ -99,8 +96,7 @@ public function offsetExists( $offset ) {
9996
*
10097
* @return mixed Can return all value types.
10198
*/
102-
#[\ReturnTypeWillChange]
103-
public function offsetGet( $offset ) {
99+
public function offsetGet( $offset ) : mixed {
104100
return isset( $this->container[ $offset ] ) ? $this->container[ $offset ] : null;
105101
}
106102

@@ -114,8 +110,7 @@ public function offsetGet( $offset ) {
114110
*
115111
* @return void
116112
*/
117-
#[\ReturnTypeWillChange]
118-
public function offsetSet( $offset, $data ) {
113+
public function offsetSet( $offset, $data ) : void {
119114
if ( is_array( $data ) ) {
120115
$data = new self( $data );
121116
}
@@ -136,8 +131,7 @@ public function offsetSet( $offset, $data ) {
136131
*
137132
* @return void
138133
*/
139-
#[\ReturnTypeWillChange]
140-
public function offsetUnset( $offset ) {
134+
public function offsetUnset( $offset ) : void {
141135
unset( $this->container[ $offset ] );
142136
}
143137
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
"path": "./node_modules/cz-conventional-changelog"
3131
},
3232
"eduadmin": {
33-
"testedUpTo": "6.4",
34-
"requiresAtLeast": "5.8",
35-
"minimumPhpVersion": "7.0"
33+
"testedUpTo": "6.5",
34+
"requiresAtLeast": "6.0",
35+
"minimumPhpVersion": "8.1"
3636
}
3737
}
3838
}

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# EduAdmin Booking
2-
- Requires at least: 5.8
3-
- Tested up to: 6.4
2+
- Requires at least: 6.0
3+
- Tested up to: 6.5
44
- Stable tag: 4.2.3
5-
- Requires PHP: 7.0
5+
- Requires PHP: 8.1
66
- License: GPL3
77
- License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
88

readme.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
=== EduAdmin Booking ===
22
Contributors: mnchga
33
Tags: booking, participants, courses, events, eduadmin, lega online
4-
Requires at least: 5.8
5-
Tested up to: 6.4
4+
Requires at least: 6.0
5+
Tested up to: 6.5
66
Stable tag: 4.2.3
7-
Requires PHP: 7.0
7+
Requires PHP: 8.1
88
License: GPL3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
1010
Donate link: https://github.com/sponsors/itssimple

tests/bootstrap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
// Give access to tests_add_filter() function.
1212
require_once $_tests_dir . '/includes/functions.php';
1313

14-
define( 'PLUGIN_NAME', 'eduadmin.php' );
14+
const PLUGIN_NAME = 'eduadmin.php';
1515
define( 'PLUGIN_FOLDER', basename( dirname( __DIR__ ) ) );
16-
define( 'PLUGIN_PATH', PLUGIN_FOLDER . '/' . PLUGIN_NAME );
17-
// Activates this plugin in WordPress so it can be tested.
16+
const PLUGIN_PATH = PLUGIN_FOLDER . '/' . PLUGIN_NAME;
17+
// Activates this plugin in WordPress, so it can be tested.
1818
$GLOBALS['wp_tests_options'] = array(
1919
'active_plugins' => array( PLUGIN_PATH ),
2020
);

0 commit comments

Comments
 (0)