Skip to content

Commit

Permalink
Merge pull request #5536 from derrabus/cs/property-types-in-tests
Browse files Browse the repository at this point in the history
Enforce property types in tests
  • Loading branch information
derrabus committed Jul 25, 2022
2 parents c581ce5 + b68be36 commit a5900ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion phpcs.xml.dist
Expand Up @@ -20,7 +20,6 @@

<rule ref="Doctrine">
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming"/>
<exclude name="SlevomatCodingStandard.Classes.DisallowLateStaticBindingForConstants.DisallowedLateStaticBindingForConstant"/>
Expand Down Expand Up @@ -49,6 +48,10 @@
<exclude-pattern>*/src/*</exclude-pattern>
</rule>

<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint">
<exclude-pattern>*/src/*</exclude-pattern>
</rule>

<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint">
<exclude-pattern>*/src/*</exclude-pattern>
</rule>
Expand Down
2 changes: 1 addition & 1 deletion tests/ConnectionTest.php
Expand Up @@ -39,7 +39,7 @@ class ConnectionTest extends TestCase
private Connection $connection;

/** @var array{wrapperClass?: class-string<Connection>} */
protected $params = [
protected array $params = [
'driver' => 'pdo_mysql',
'host' => 'localhost',
'user' => 'root',
Expand Down

0 comments on commit a5900ff

Please sign in to comment.