wishthis/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowUseFunctionStandard.xml

26 lines
786 B
XML
Raw Normal View History

2023-09-19 17:26:46 +00:00
<?xml version="1.0"?>
<documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
title="Disallow Use Function"
>
<standard>
<![CDATA[
Disallow the use of `use function` import statements, with or without alias.
]]>
</standard>
<code_comparison>
<code title="Valid: Other type of use import statements.">
<![CDATA[
use Vendor\Sub\ClassName;
use const Vendor\Sub\CONST;
]]>
</code>
<code title="Invalid: use function import statements.">
<![CDATA[
use function Vendor\Sub\functionName;
use function Vendor\Sub\functionName as other;
]]>
</code>
</code_comparison>
</documentation>