Skip to content

Commit

Permalink
[TASK] Enforce constant visibility (#892)
Browse files Browse the repository at this point in the history
This is now possible since we require PHP >= 7.1.
  • Loading branch information
oliverklee authored Jun 14, 2020
1 parent 9ffe055 commit 9af9c96
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
### Added

### Changed
- Enforce constant visibility
([#892](https://github.com/MyIntervals/emogrifier/pull/892))
- Rename the PHPCS configuration file
([#891](https://github.com/MyIntervals/emogrifier/pull/891))
- Make use of PHP 7.1 language features
Expand Down
5 changes: 1 addition & 4 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
<config name="installed_paths" value="../../slevomat/coding-standard"/>

<!-- The complete PSR-12 ruleset -->
<rule ref="PSR12">
<!-- Exclude a rule that requires PHP >= 7.1. -->
<exclude name="PSR12.Properties.ConstantVisibility"/>
</rule>
<rule ref="PSR12"/>

<!-- Arrays -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/CssInlinerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class CssInlinerTest extends TestCase
/**
* @var string Common HTML markup with a variety of elements and attributes for testing with
*/
const COMMON_TEST_HTML = '
private const COMMON_TEST_HTML = '
<html>
<body>
<p class="p-1"><span>some text</span></p>
Expand Down

0 comments on commit 9af9c96

Please sign in to comment.