summaryrefslogtreecommitdiff
path: root/vendor/symfony/debug/Tests/Fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/debug/Tests/Fixtures')
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/InterfaceWithAnnotatedParameters.php13
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/SubClassWithAnnotatedParameters.php8
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/VirtualClass.php11
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/VirtualClassMagicCall.php18
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/VirtualInterface.php34
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/VirtualSubInterface.php10
-rw-r--r--vendor/symfony/debug/Tests/Fixtures/VirtualTrait.php10
7 files changed, 104 insertions, 0 deletions
diff --git a/vendor/symfony/debug/Tests/Fixtures/InterfaceWithAnnotatedParameters.php b/vendor/symfony/debug/Tests/Fixtures/InterfaceWithAnnotatedParameters.php
index 54abd68efa..86593db124 100644
--- a/vendor/symfony/debug/Tests/Fixtures/InterfaceWithAnnotatedParameters.php
+++ b/vendor/symfony/debug/Tests/Fixtures/InterfaceWithAnnotatedParameters.php
@@ -11,4 +11,17 @@ interface InterfaceWithAnnotatedParameters
* @param bool $matrix
*/
public function whereAmI();
+
+ /**
+ * @param $noType
+ * @param callable(\Throwable|null $reason, mixed $value) $callback and a comment
+ * about this great param
+ * @param string $param (comment with $dollar)
+ * @param $defined
+ * @param callable ($a, $b) $anotherOne
+ * @param callable (mixed $a, $b) $definedCallable
+ * @param Type$WithDollarIsStillAType $ccc
+ * @param \JustAType
+ */
+ public function iAmHere();
}
diff --git a/vendor/symfony/debug/Tests/Fixtures/SubClassWithAnnotatedParameters.php b/vendor/symfony/debug/Tests/Fixtures/SubClassWithAnnotatedParameters.php
index 20358e96de..5d05d79835 100644
--- a/vendor/symfony/debug/Tests/Fixtures/SubClassWithAnnotatedParameters.php
+++ b/vendor/symfony/debug/Tests/Fixtures/SubClassWithAnnotatedParameters.php
@@ -21,4 +21,12 @@ class SubClassWithAnnotatedParameters extends ClassWithAnnotatedParameters imple
public function whereAmI()
{
}
+
+ /**
+ * @param $defined
+ * @param Type\Does\Not\Matter $definedCallable
+ */
+ public function iAmHere()
+ {
+ }
}
diff --git a/vendor/symfony/debug/Tests/Fixtures/VirtualClass.php b/vendor/symfony/debug/Tests/Fixtures/VirtualClass.php
new file mode 100644
index 0000000000..25712519a5
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/VirtualClass.php
@@ -0,0 +1,11 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @method string classMethod()
+ */
+class VirtualClass
+{
+ use VirtualTrait;
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/VirtualClassMagicCall.php b/vendor/symfony/debug/Tests/Fixtures/VirtualClassMagicCall.php
new file mode 100644
index 0000000000..de33e8afc5
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/VirtualClassMagicCall.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @method string magicMethod()
+ * @method static string staticMagicMethod()
+ */
+class VirtualClassMagicCall
+{
+ public static function __callStatic($name, $arguments)
+ {
+ }
+
+ public function __call($name, $arguments)
+ {
+ }
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/VirtualInterface.php b/vendor/symfony/debug/Tests/Fixtures/VirtualInterface.php
new file mode 100644
index 0000000000..943014eefb
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/VirtualInterface.php
@@ -0,0 +1,34 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @method string interfaceMethod()
+ * @method sameLineInterfaceMethod($arg)
+ * @method sameLineInterfaceMethodNoBraces
+ *
+ * Ignored
+ * @method
+ * @method
+ *
+ * Not ignored
+ * @method newLineInterfaceMethod() Some description!
+ * @method \stdClass newLineInterfaceMethodNoBraces Description
+ *
+ * Invalid
+ * @method unknownType invalidInterfaceMethod()
+ * @method unknownType|string invalidInterfaceMethodNoBraces
+ *
+ * Complex
+ * @method complexInterfaceMethod($arg, ...$args)
+ * @method string[]|int complexInterfaceMethodTyped($arg, int ...$args) Description ...
+ *
+ * Static
+ * @method static Foo&Bar staticMethod()
+ * @method static staticMethodNoBraces
+ * @method static \stdClass staticMethodTyped(int $arg) Description
+ * @method static \stdClass[] staticMethodTypedNoBraces
+ */
+interface VirtualInterface
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/VirtualSubInterface.php b/vendor/symfony/debug/Tests/Fixtures/VirtualSubInterface.php
new file mode 100644
index 0000000000..dee19731dc
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/VirtualSubInterface.php
@@ -0,0 +1,10 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @method string subInterfaceMethod()
+ */
+interface VirtualSubInterface extends VirtualInterface
+{
+}
diff --git a/vendor/symfony/debug/Tests/Fixtures/VirtualTrait.php b/vendor/symfony/debug/Tests/Fixtures/VirtualTrait.php
new file mode 100644
index 0000000000..f584a8aa8f
--- /dev/null
+++ b/vendor/symfony/debug/Tests/Fixtures/VirtualTrait.php
@@ -0,0 +1,10 @@
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+/**
+ * @method string traitMethod()
+ */
+trait VirtualTrait
+{
+}