Skip to content

Conversation

@donnapep
Copy link
Collaborator

@donnapep donnapep commented Apr 20, 2025

Resolves #7400.

Proposed Changes

Replaces get_class calls with __CLASS__ magic constant.

Testing Instructions

  1. Switch to PHP 8.3+.
  2. Activate Sensei.
  3. Ensure there are no PHP get_class deprecation notices.

Pre-Merge Checklist

  • PR title and description contain sufficient detail and accurately describe the changes
  • Adheres to coding standards (PHP, JavaScript, CSS, HTML)
  • All strings are translatable (without concatenation, handles plurals)
  • Follows our naming conventions (P6rkRX-4oA-p2)
  • Hooks (p6rkRX-1uS-p2) and functions are documented
  • New UIs are responsive and use a mobile-first approach
  • Code is tested on the minimum supported PHP and WordPress versions

@donnapep donnapep added this to the 4.25.1 milestone Apr 20, 2025
@donnapep donnapep self-assigned this Apr 20, 2025
@github-actions
Copy link

Test the previous changes of this PR with WordPress Playground.

@donnapep donnapep merged commit a6a65d3 into trunk Apr 20, 2025
24 checks passed
@donnapep donnapep deleted the fix/deprecated-get_class branch April 20, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP 8.3 deprecated notice of calling get_class without parameters

2 participants