Skip to content

Commit 70691da

Browse files
dd32claude
andauthored
PHP 8.4: Add explicit visibility to class constants (#1641)
* PHP 8.4: Add explicit visibility to class constants Add `public` visibility modifier to all class constants across mu-plugins and plugins. Implicit public visibility on class constants is deprecated in PHP 8.4. This is backwards-compatible with PHP 8.1+. Third-party vendor code (razorpay-php) is excluded. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix PHPCS inline comment punctuation on changed lines Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 467fdb7 commit 70691da

File tree

29 files changed

+42
-42
lines changed

29 files changed

+42
-42
lines changed

public_html/wp-content/mu-plugins/camptix-tweaks/addons/extra-fields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ abstract class Extra_Fields extends CampTix_Addon {
1515
*
1616
* @var string
1717
*/
18-
const SLUG = '';
18+
public const SLUG = '';
1919

2020
/**
2121
* The slug for the field, used in filter names.

public_html/wp-content/mu-plugins/camptix-tweaks/addons/extra-fields/accommodations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @package WordCamp\CampTix_Tweaks
1717
*/
1818
class Accommodations_Field extends Extra_Fields {
19-
const SLUG = 'accommodations';
19+
public const SLUG = 'accommodations';
2020

2121
public $question_order = 30;
2222

public_html/wp-content/mu-plugins/camptix-tweaks/addons/extra-fields/allergy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @package WordCamp\CampTix_Tweaks
1515
*/
1616
class Allergy_Field extends Extra_Fields {
17-
const SLUG = 'allergy';
17+
public const SLUG = 'allergy';
1818

1919
public $question_order = 30;
2020

public_html/wp-content/mu-plugins/camptix-tweaks/addons/extra-fields/code-of-conduct.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @package WordCamp\CampTix_Tweaks
1212
*/
1313
class Code_Of_Conduct_Field extends Extra_Fields {
14-
const SLUG = 'coc';
14+
public const SLUG = 'coc';
1515

1616
public $question_order = 100;
1717
public $type = 'checkbox';

public_html/wp-content/mu-plugins/camptix-tweaks/addons/extra-fields/first-time.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Add an required attendee field asking if they've attended a WordCamp before.
88
*/
99
class First_Time_Field extends Extra_Fields {
10-
const SLUG = 'first_time_attending_wp_event';
10+
public const SLUG = 'first_time_attending_wp_event';
1111

1212
protected $filter_slug = 'first_time';
1313
public $question_order = 40;

public_html/wp-content/mu-plugins/camptix-tweaks/addons/extra-fields/privacy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @package WordCamp\CampTix_Tweaks
1414
*/
1515
class Privacy_Field extends Extra_Fields {
16-
const SLUG = 'privacy';
16+
public const SLUG = 'privacy';
1717

1818
public $question_order = 11;
1919
public $enable_summary = false;

public_html/wp-content/mu-plugins/camptix-tweaks/addons/health-advisory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
defined( 'WPINC' ) || die();
66

77
class Health_Advisory_Field extends CampTix_Addon {
8-
const SLUG = 'health-advisory';
8+
public const SLUG = 'health-advisory';
99

1010
/**
1111
* Hook into WordPress and Camptix.

public_html/wp-content/mu-plugins/utilities/class-genderize-client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Genderize_Client extends API_Client {
1616
/**
1717
* @var string The option key where the cache is saved in the database.
1818
*/
19-
const CACHE_KEY = 'genderize_cached_data';
19+
public const CACHE_KEY = 'genderize_cached_data';
2020

2121
/**
2222
* @var string The base URL for the API endpoints.

public_html/wp-content/mu-plugins/utilities/class-stripe-client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* TODO Refactor this to use the API_Client base class.
1717
*/
1818
class Stripe_Client {
19-
const API_URL = 'https://api.stripe.com';
20-
const AMOUNT_MAX = 99999999;
19+
public const API_URL = 'https://api.stripe.com';
20+
public const AMOUNT_MAX = 99999999;
2121
protected $secret_key;
2222

2323
/**

public_html/wp-content/plugins/camptix/addons/require-login.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* todo add a detailed explanation of the goals, workflow, etc
77
*/
88
class CampTix_Require_Login extends CampTix_Addon {
9-
const UNCONFIRMED_USERNAME = '[[ unconfirmed ]]';
10-
const UNKNOWN_ATTENDEE_EMAIL = 'unknown.attendee@example.org';
9+
public const UNCONFIRMED_USERNAME = '[[ unconfirmed ]]';
10+
public const UNKNOWN_ATTENDEE_EMAIL = 'unknown.attendee@example.org';
1111

1212
/**
1313
* Register hook callbacks

0 commit comments

Comments
 (0)