summaryrefslogtreecommitdiffstatshomepage
path: root/tests/phpunit/includes/factory/class-wp-unittest-generator-sequence.php
diff options
context:
space:
mode:
authorSergey Biryukov <sergeybiryukov@git.wordpress.org>2020-10-17 16:24:35 +0000
committerSergey Biryukov <sergeybiryukov@git.wordpress.org>2020-10-17 16:24:35 +0000
commit5bad4e7f8d6cf67fbcea1e7c763cc41bceaa810b (patch)
tree1885d02dd312ea8be646dfc6d1d67873c69605f3 /tests/phpunit/includes/factory/class-wp-unittest-generator-sequence.php
parent5b6a20af07f7a34b1e20611a58741e20454cbd1a (diff)
downloadwordpress-5bad4e7f8d6cf67fbcea1e7c763cc41bceaa810b.tar.gz
wordpress-5bad4e7f8d6cf67fbcea1e7c763cc41bceaa810b.zip
Code Modernization: Use explicit visibility for class property declarations.
Using `var` or only `static` to declare a class property is PHP 4 code. This updates the codebase to use explicit visibility modifiers introduced in PHP 5. Props jrf. Fixes #51557. See #22234. git-svn-id: https://develop.svn.wordpress.org/trunk@49184 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tests/phpunit/includes/factory/class-wp-unittest-generator-sequence.php')
-rw-r--r--tests/phpunit/includes/factory/class-wp-unittest-generator-sequence.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/factory/class-wp-unittest-generator-sequence.php b/tests/phpunit/includes/factory/class-wp-unittest-generator-sequence.php
index 5c0778f3d4..9391dd8bf7 100644
--- a/tests/phpunit/includes/factory/class-wp-unittest-generator-sequence.php
+++ b/tests/phpunit/includes/factory/class-wp-unittest-generator-sequence.php
@@ -1,7 +1,7 @@
<?php
class WP_UnitTest_Generator_Sequence {
- static $incr = -1;
+ public static $incr = -1;
public $next;
public $template_string;