Automattic / Automattic/What-the-Email
Use "public" instead of "var" for class variables
Open
enhancement
- Dominant language
- PHP
- Stars
- 15
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
`var` is the PHP 4 way of declaring class variables. `public` should be used instead.
http://www.php.net/manual/en/language.oop5.visibility.php
Contributor guide
No contributing guide indexed for this repository
Research direction
Search the repository's PHP classes for class variables declared with `var`, using the PHP visibility documentation linked in the issue as the reference. Replace the applicable declarations with `public` and verify that the project still parses or passes its available checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100