Skip to content

Commit

Permalink
PHP 8.2 compatibility (#41)
Browse files Browse the repository at this point in the history
* Adds dynamic properties as class properties

* Changes the access level of newly added props

* Fixes linting errors in main file

* Dynamic properties added as class properties
  • Loading branch information
subaida77 authored Feb 19, 2024
1 parent 06e37c5 commit e324e35
Show file tree
Hide file tree
Showing 7 changed files with 9,149 additions and 227 deletions.
1 change: 1 addition & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"plugins": [ "./" ],
"port": 8801,
"testsPort": 8802,
"phpVersion": "8.2",
"config": {
"WP_DEBUG_DISPLAY": true,
"WP_DEBUG": true
Expand Down
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"require": {
"woocommerce/woocommerce-sniffs": "^1.0"
"require-dev": {
"woocommerce/woocommerce-sniffs": "^1.0",
"phpcompatibility/php-compatibility": "^9.3"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"sniffer:php8": "phpcs -p ./class-mas-wp-job-manager-company.php --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.2"
}
}
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,27 @@ class MAS_WP_Job_Manager_Company_Form_Submit_Company extends WP_Job_Manager_Form
protected $company_id;
protected $preview_company;

/**
* Number of steps in the form.
*
* @param array $steps
*/
protected $steps = array();

/**
* The current step.
*
* @param int $step
*/
protected $step;

/**
* Fields of the form.
*
* @param array $fields
*/
protected $fields;

/** @var MAS_WP_Job_Manager_Company_Form_Submit_Company The single instance of the class */
protected static $_instance = null;

Expand Down
Loading

0 comments on commit e324e35

Please sign in to comment.