Skip to content

Commit

Permalink
phpcs: emulate lowest support php version (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal authored Dec 27, 2023
1 parent 313abe5 commit cfb903b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<file>tests/</file>

<config name="installed_paths" value="../../slevomat/coding-standard"/>
<config name="php_version" value="70400"/>

<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Classes.DuplicateClassName"/>
Expand Down Expand Up @@ -244,9 +245,7 @@
</rule>

<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference">
<exclude name="SlevomatCodingStandard.Classes.ModernClassNameReference.ClassNameReferencedViaFunctionCall"/> <!-- after bumping to PHP8 -->
</rule>
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility" />
<rule ref="SlevomatCodingStandard.Classes.ClassStructure">
<properties>
Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/MySql/UseIndexHintHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getNodes(): array

public function processNode(string $sqlNode, string $sql): string
{
$selfClass = get_class($this);
$selfClass = static::class;
$sqlWalker = $this->getDoctrineSqlWalker();
$query = $sqlWalker->getQuery();
$platform = $query->getEntityManager()->getConnection()->getDatabasePlatform();
Expand Down

0 comments on commit cfb903b

Please sign in to comment.