Skip to content

Commit 78a2dd5

Browse files
committed
remove legacy conditional
1 parent baacf87 commit 78a2dd5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Util/MakerFileLinkFormatter.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@
1919
*/
2020
final class MakerFileLinkFormatter
2121
{
22-
public function __construct(private ?FileLinkFormatter $fileLinkFormatter = null)
23-
{
24-
// Since nullable types are not available in 7.0; can be removed when php >= 7.1 required
25-
if (0 === \func_num_args()) {
26-
throw new \LogicException('$fileLinkFormatter argument is required');
27-
}
22+
public function __construct(
23+
private ?FileLinkFormatter $fileLinkFormatter = null,
24+
) {
2825
}
2926

3027
public function makeLinkedPath(string $absolutePath, string $relativePath): string

0 commit comments

Comments
 (0)