Update Doctrine CS requirement

parent a5d3e33c
......@@ -31,6 +31,7 @@ script: ./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml
jobs:
allow_failures:
- php: nightly
- stage: Coding standard
include:
- stage: Test
......@@ -304,7 +305,7 @@ jobs:
- stage: Pull request coding standard
if: type = pull_request
php: 7.2
php: 7.1
script:
- |
if [ $TRAVIS_BRANCH != "master" ]; then
......@@ -317,6 +318,6 @@ jobs:
- stage: Coding standard
if: NOT type = pull_request
php: nightly
php: 7.1
script:
- ./vendor/bin/phpcs
......@@ -12,12 +12,20 @@
<file>lib</file>
<file>tests</file>
<rule ref="Doctrine"/>
<rule ref="Doctrine">
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint"/>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase">
<exclude-pattern>lib/Doctrine/DBAL/Events.php</exclude-pattern>
</rule>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment