Skip to content

CampTix: Add missing property declarations to CampTix_Plugin#1703

Merged
dd32 merged 2 commits intoproductionfrom
add/camptix-property-declarations
Apr 22, 2026
Merged

CampTix: Add missing property declarations to CampTix_Plugin#1703
dd32 merged 2 commits intoproductionfrom
add/camptix-property-declarations

Conversation

@dd32
Copy link
Copy Markdown
Member

@dd32 dd32 commented Apr 21, 2026

Summary

  • Declares shortcode_str, order, tickets_url, flush_tickets_page, and removed_shortcodes as protected properties on CampTix_Plugin.
  • These properties were used throughout the plugin but never formally declared, triggering dynamic property deprecation notices on PHP 8.2+.
  • Confirmed protected is the correct visibility — no external code or subclass accesses these properties.

Test plan

  • Verify no PHP deprecation notices for dynamic properties on PHP 8.2+
  • Verify ticket purchase flow still works end-to-end

🤖 Generated with Claude Code

Declare `shortcode_str`, `order`, `tickets_url`, `flush_tickets_page`,
and `removed_shortcodes` as protected properties on the class. These
were being used throughout the plugin but never formally declared,
which triggers deprecation notices on PHP 8.2+.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 21, 2026 05:00
@dd32 dd32 added the [Component] CampTix Including addons label Apr 21, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CampTix plugin to avoid PHP 8.2+ dynamic property deprecation notices by formally declaring several previously-implicit instance properties on CampTix_Plugin.

Changes:

  • Declares shortcode_str, order, tickets_url, flush_tickets_page, and removed_shortcodes as class properties.
  • Initializes removed_shortcodes to an empty array by default.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread public_html/wp-content/plugins/camptix/camptix.php Outdated
Claude 8, CoPilot 1.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 22, 2026 02:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses PHP 8.2+ dynamic property deprecation notices in the CampTix plugin by formally declaring several previously-implicit instance properties on CampTix_Plugin.

Changes:

  • Declare missing properties on CampTix_Plugin: shortcode_str, order, tickets_url, flush_tickets_page, and removed_shortcodes.
  • Initialize removed_shortcodes to an empty array to match existing usage patterns.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

protected $order;
protected $tickets_url;
protected $flush_tickets_page;
public $removed_shortcodes = array();
@dd32 dd32 merged commit 172f5e2 into production Apr 22, 2026
9 checks passed
@dd32 dd32 deleted the add/camptix-property-declarations branch April 22, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Component] CampTix Including addons

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants