diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index f584577557..5f226d56a2 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -49,8 +49,13 @@ // needs to be a raw `StripeObject`. 'self_accessor' => false, - // Visibility annotations are not supported by php5.6 - 'visibility_required' => false, + // Visibility for constants is not supported by php5.6 + 'visibility_required' => [ + 'elements' => [ + 'method', + 'property', + ], + ], // Apparently "uninitialized" is distinct from "null" in some versions of PHP // so I am defensively disabling this rule so as to not cause breaking changes