Skip to content

Commit cc04d47

Browse files
committed
Merge branch '2.16'
2 parents a828d5f + b997bc3 commit cc04d47

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

doc/rules/function_notation/phpdoc_to_return_type.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,22 @@ With configuration: ``['scalar_types' => false]``.
9696
+function foo(): Foo {}
9797
/** @return string */
9898
function bar() {}
99+
100+
Example #5
101+
~~~~~~~~~~
102+
103+
*Default* configuration.
104+
105+
.. code-block:: diff
106+
107+
--- Original
108+
+++ New
109+
@@ -3,7 +3,7 @@
110+
/**
111+
* @return static
112+
*/
113+
- public function create($prototype) {
114+
+ public function create($prototype): static {
115+
return new static($prototype);
116+
}
117+
}

0 commit comments

Comments
 (0)