Skip to content

Commit

Permalink
Enhancement: Enable and configure visibility_required fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Feb 8, 2023
1 parent 959b332 commit eb101ba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 requires PHP 7.1, but we support PHP 5.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
Expand Down

0 comments on commit eb101ba

Please sign in to comment.