Skip to content

Commit

Permalink
Remove usage in WP Core part
Browse files Browse the repository at this point in the history
  • Loading branch information
dingo-d committed Aug 26, 2022
1 parent 8f01b1b commit 877a384
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions wordpress-coding-standards/php.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,6 @@ add_action( 'action_name', array( My_Class::class, 'method_name' ) );
add_action( 'action_name', array( My_Class :: CLASS, 'method_name' ) );
```

_Usage in WordPress Core_

The `::class` constant can be used in WordPress Core.
Replacing existing uses of `__CLASS__` with `self::class` and `get_called_class()` with `static::class`, where appropriate, is encouraged.

## Declare Statements, Namespace, and Import Statements

### Namespace declarations
Expand Down

0 comments on commit 877a384

Please sign in to comment.