Automattic / Automattic/What-the-Email

Use "public" instead of "var" for class variables

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.