Skip to content

Commit

Permalink
Update cs configuration to ignore type hintings
Browse files Browse the repository at this point in the history
Signed-off-by: Jefersson Nathan <[email protected]>
  • Loading branch information
malukenho committed Jan 20, 2022
1 parent cec83a3 commit 71e6a5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,10 @@

<file>src</file>

<rule ref="Doctrine" />
<rule ref="Doctrine">
<!-- Ignore type hinting check, it should be done by psalm -->
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint"/>
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint"/>
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint"/>
</rule>
</ruleset>
1 change: 1 addition & 0 deletions src/Soql/Payload.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use GuzzleHttp\Exception\ClientException;

use function array_map as map;
use function is_array;
use function json_decode;

use const JSON_THROW_ON_ERROR;
Expand Down

0 comments on commit 71e6a5b

Please sign in to comment.