<NME> NullableReturnTypeHintedClass.php
<BEF> ADDFILE
<MSG> Test asset: class with nullable return types

<DFF> @@ -0,0 +1,42 @@
+<?php
+
+namespace ZendTest\Code\TestAsset;
+
+class NullableReturnTypeHintedClass
+{
+    public function arrayReturn() : ?array
+    {
+    }
+
+    public function callableReturn() : ?callable
+    {
+    }
+
+    public function intReturn() : ?int
+    {
+    }
+
+    public function floatReturn() : ?float
+    {
+    }
+
+    public function stringReturn() : ?string
+    {
+    }
+
+    public function boolReturn() : ?bool
+    {
+    }
+
+    public function selfReturn() : ?self
+    {
+    }
+
+    public function classReturn() : ?ReturnTypeHintedClass
+    {
+    }
+
+    public function otherClassReturn() : ?InternalHintsClass
+    {
+    }
+}

Test asset: class with nullable return types