1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 06:42:42 +01:00

Initialize static variable to make linter happy

Summary: Uninitialized variable defaults to 0 in this context. Make it explicit.

Test Plan: None. No functional change.

Reviewers: O1 Blessed Committers, speck

Reviewed By: O1 Blessed Committers, speck

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25470
This commit is contained in:
Zero King 2023-11-13 02:15:11 +08:00
parent 486fc95b29
commit 361fcd0cac

View file

@ -461,7 +461,7 @@ final class PhabricatorPolicyFilter extends Phobject {
// checks make it difficult to create cycles normally, so just do a // checks make it difficult to create cycles normally, so just do a
// simple check here to limit damage. // simple check here to limit damage.
static $depth; static $depth = 0;
$depth++; $depth++;