Skip to content

Commit

Permalink
CLI-1413: Set PHP compatibility level (acquia#1807)
Browse files Browse the repository at this point in the history
* CLI-1413: Set PHP compatibility level

* fix spacing
  • Loading branch information
danepowell authored Oct 4, 2024
1 parent cef7a69 commit 5e491cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.xml.dist]
indent_size = 2
7 changes: 6 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@

<rule ref="AcquiaPHPStrict">
<exclude name="Generic.Files.LineLength"/>
<exclude name="PHPCompatibility"/>
</rule>
<config name="testVersion" value="8.2-"/>
<rule ref="PHPCompatibility">
<exclude name="PHPCompatibility.Extensions.RemovedExtensions.famRemoved"/>
</rule>

<rule ref="Generic.PHP.ForbiddenFunctions">
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="echo" value="$output->writeln"/>
Expand Down

0 comments on commit 5e491cf

Please sign in to comment.