mirror of
https://github.com/apache/thrift.git
synced 2026-10-29 00:46:21 +08:00
Client: php Autor: Volodymyr Panivko Generated-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> This closes #3449
689 B
689 B
PHP Coding Standards
Please follow:
Naming
In addition to PSR-12, Apache Thrift's PHP code does not use leading or trailing
underscores on identifiers (properties, methods, constants). Earlier versions of
the library carried a Google-C++-style trailing underscore convention on
private/protected members; this is no longer accepted. Use plain camelCase for
properties and methods, with PHP visibility keywords (private, protected,
public) to convey intent.
The phpcs configuration in phpcs.xml.dist enforces PSR-12 across
lib/php/lib/ and lib/php/test/.