Skip to content

Commit ef1636f

Browse files
Add return type unions to private/internal/final/test methods
1 parent 4cf1481 commit ef1636f

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Extension/CodeExtension.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,7 @@ public function formatFile(string $file, int $line, string $text = null): string
169169
return $text;
170170
}
171171

172-
/**
173-
* Returns the link for a given file/line pair.
174-
*
175-
* @return string|false A link or false
176-
*/
177-
public function getFileLink(string $file, int $line)
172+
public function getFileLink(string $file, int $line): string|false
178173
{
179174
if ($fmt = $this->fileLinkFormat) {
180175
return \is_string($fmt) ? strtr($fmt, ['%f' => $file, '%l' => $line]) : $fmt->format($file, $line);

Extension/FormExtension.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ public function getFieldName(FormView $view): string
103103
return $view->vars['full_name'];
104104
}
105105

106-
/**
107-
* @return string|array
108-
*/
109-
public function getFieldValue(FormView $view)
106+
public function getFieldValue(FormView $view): string|array
110107
{
111108
return $view->vars['value'];
112109
}

0 commit comments

Comments
 (0)