Skip to content

Commit

Permalink
Added PHP Compatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Jan 12, 2021
1 parent 366f8d7 commit b5f0d43
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

<!-- rules -->
<rule ref="./vendor/glpi-project/coding-standard/GlpiStandard" />
<rule ref="./vendor/phpcompatibility/php-compatibility/PHPCompatibility">
<exclude name="PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore" />
</rule>

<!-- Indent 3 -->
<rule ref="Generic.WhiteSpace.ScopeIndent">
Expand All @@ -19,6 +22,9 @@
<file>.</file>
<exclude-pattern>vendor</exclude-pattern>

<!-- Check for cross-version support for PHP 5.6 and higher. -->
<config name="testVersion" value="5.4-"/>

<!-- args -->
<arg name="extensions" value="php,php5,inc"/>
<arg name="encoding" value="UTF-8"/>
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "Single Sign-On (OAuth) for GLPI",
"require-dev": {
"glpi-project/coding-standard": "^0.8",
"phpcompatibility/php-compatibility": "^9.3",
"squizlabs/php_codesniffer": "^3.5"
},
"scripts": {
Expand Down
62 changes: 60 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b5f0d43

Please sign in to comment.