From 9b458fa2acee23321902be1a289e48c40f1d198e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=BDoljom?= Date: Mon, 8 Jan 2024 16:55:40 +0100 Subject: [PATCH] Add the documentation for the PSR12 Use Declaration sniff --- .../Docs/Traits/UseDeclarationStandard.xml | 190 ++++++++++++++++++ 1 file changed, 190 insertions(+) create mode 100644 src/Standards/PSR12/Docs/Traits/UseDeclarationStandard.xml diff --git a/src/Standards/PSR12/Docs/Traits/UseDeclarationStandard.xml b/src/Standards/PSR12/Docs/Traits/UseDeclarationStandard.xml new file mode 100644 index 0000000000..8fbf9bb21c --- /dev/null +++ b/src/Standards/PSR12/Docs/Traits/UseDeclarationStandard.xml @@ -0,0 +1,190 @@ + + + + + + + + + + + use Bar; +} + ]]> + + + + + + + + use SecondTrait; + use ThirdTrait, FourthTrait; +} + ]]> + + + + + + + + +} + ]]> + + + + + + private $foo = 'bar'; +} + ]]> + + + + private $foo = 'bar'; +} + ]]> + + + + + FirstTrait; + use SecondTrait; +} + ]]> + + + FirstTrait; + use SecondTrait; +} + ]]> + + + + + + + + insteadof A; + A::big insteadof C; + C::medium as FooBar; + } +} + ]]> + + + + + , SecondTrait, + use ThirdTrait { + B::small insteadof A; + A::big insteadof C; + C::medium as FooBar; + } +} + ]]> + + + , SecondTrait, + use ThirdTrait + { + B::small insteadof A; + A::big insteadof C; C::medium as FooBar; + } +} + ]]> + + + + + + + + use ThirdTrait; +} + ]]> + + +