I need a rule that
\array_ke_exists() cannot be written)I tried to use the rule SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly, but I was not successful.
It seems, when I write
<property name="allowFullyQualifiedGlobalFunctions" value="false"/>
<property name="allowFallbackGlobalFunctions" value="false"/>
<property name="allowFullyQualifiedNameForCollidingFunctions" value="true"/>
and
<property name="namespacesRequiredToUse" type="array">
with empty field (because without it, it is not possible using fqn classes without placing in the use section). Then the rule namespacesRequiredToUse overrides the rule allowFullyQualifiedGlobalFunctions.
(I found one solution when I write all existing global php functions into namespacesRequiredToUse, but it is very slow and difficult to maintain)
Any ideas how to achieve with slevomat/coding-standard of what I need?
@kukulich That solution disables fqn for all classes (for example \stdClass or \DateTimeImmutable).
I find rule for
\array_ke_exists() cannot be written)without side effects.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.