Skip to content

Commit

Permalink
chore: PHP 8.1 and WP 6.0 requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed Feb 22, 2024
1 parent 33234df commit 353e4dd
Show file tree
Hide file tree
Showing 9 changed files with 194 additions and 164 deletions.
2 changes: 1 addition & 1 deletion PLUGIN-CHECKSUM
Original file line number Diff line number Diff line change
@@ -1 +1 @@
aba35655ceb67555bb5c2580fbcd8cb6
7fe2fe0a83fb2450129bed8f524c65b1
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.3",
"php": ">=8.1",
"composer/installers": "~2"
},
"version": "2.22.0"
"version": "5.0.0"
}
6 changes: 3 additions & 3 deletions eduadmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
* Version: 4.2.3
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
* Requires at least: 5.8
* Tested up to: 6.4
* Requires PHP: 7.0
* Requires at least: 6.0
* Tested up to: 6.5
* Requires PHP: 8.1
* Author: Chris Gårdenberg, MultiNet Interactive AB
* Author URI: https://www.multinet.com
* License: GPL3
Expand Down
16 changes: 5 additions & 11 deletions libraries/class-recursive-arrayaccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* @package WordPress
* @since 3.6.0
*/

class Recursive_ArrayAccess implements ArrayAccess {
/**
* Internal data collection.
Expand Down Expand Up @@ -62,8 +61,7 @@ public function __clone() {
*
* @return array
*/
#[\ReturnTypeWillChange]
public function toArray() {
public function toArray() : array {
$data = $this->container;
foreach ( $data as $key => $value ) {
if ( $value instanceof self ) {
Expand All @@ -85,8 +83,7 @@ public function toArray() {
*
* @return boolean true on success or false on failure.
*/
#[\ReturnTypeWillChange]
public function offsetExists( $offset ) {
public function offsetExists( $offset ) : bool {
return isset( $this->container[ $offset ] );
}

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

Expand All @@ -114,8 +110,7 @@ public function offsetGet( $offset ) {
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet( $offset, $data ) {
public function offsetSet( $offset, $data ) : void {
if ( is_array( $data ) ) {
$data = new self( $data );
}
Expand All @@ -136,8 +131,7 @@ public function offsetSet( $offset, $data ) {
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset( $offset ) {
public function offsetUnset( $offset ) : void {
unset( $this->container[ $offset ] );
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"path": "./node_modules/cz-conventional-changelog"
},
"eduadmin": {
"testedUpTo": "6.4",
"requiresAtLeast": "5.8",
"minimumPhpVersion": "7.0"
"testedUpTo": "6.5",
"requiresAtLeast": "6.0",
"minimumPhpVersion": "8.1"
}
}
}
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# EduAdmin Booking
- Requires at least: 5.8
- Tested up to: 6.4
- Requires at least: 6.0
- Tested up to: 6.5
- Stable tag: 4.2.3
- Requires PHP: 7.0
- Requires PHP: 8.1
- License: GPL3
- License URI: https://www.gnu.org/licenses/gpl-3.0.en.html

Expand Down
6 changes: 3 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== EduAdmin Booking ===
Contributors: mnchga
Tags: booking, participants, courses, events, eduadmin, lega online
Requires at least: 5.8
Tested up to: 6.4
Requires at least: 6.0
Tested up to: 6.5
Stable tag: 4.2.3
Requires PHP: 7.0
Requires PHP: 8.1
License: GPL3
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Donate link: https://github.com/sponsors/itssimple
Expand Down
6 changes: 3 additions & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
// Give access to tests_add_filter() function.
require_once $_tests_dir . '/includes/functions.php';

define( 'PLUGIN_NAME', 'eduadmin.php' );
const PLUGIN_NAME = 'eduadmin.php';
define( 'PLUGIN_FOLDER', basename( dirname( __DIR__ ) ) );
define( 'PLUGIN_PATH', PLUGIN_FOLDER . '/' . PLUGIN_NAME );
// Activates this plugin in WordPress so it can be tested.
const PLUGIN_PATH = PLUGIN_FOLDER . '/' . PLUGIN_NAME;
// Activates this plugin in WordPress, so it can be tested.
$GLOBALS['wp_tests_options'] = array(
'active_plugins' => array( PLUGIN_PATH ),
);
Expand Down
Loading

0 comments on commit 353e4dd

Please sign in to comment.