<NME> pass_by_reference.php
<BEF> ADDFILE
<MSG> Support function arguments passed by reference

Ampersands inside function signatures are not added to the output
immediately, instead they are handled later in the code, when the
converter may prepend type declarations.

Added test.

<DFF> @@ -0,0 +1,25 @@
+<?php
+
+/**
+ * @param string $a
+ * @param array $b
+ * @param int $c
+ * @return bool
+ */
+function pass_by_reference(string $a, array &$b, int &$c): bool
+{
+}
+
+$closure = function (&$a) {
+};
+
+function pass_by_reference_undocumented(&$a, $b = 1 & 1)
+{
+}
+
+/**
+ * @param string $a
+ */
+function not_by_reference(string $a)
+{
+}

Support function arguments passed by reference