[DOC-CVS] [phd] master: Add a return type to render::make_reader

[email protected] (Anna Filina via Tim Düsterhus)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Anna Filina (afilina)
Committer: Tim Düsterhus (TimWolla)
Date: 2025-10-21T19:58:57+02:00

Commit: https://github.com/php/phd/commit/3264920aa15a9cbc911aac80900e8b46356eeb50
Raw diff: https://github.com/php/phd/commit/3264920aa15a9cbc911aac80900e8b46356eeb50.diff

Add a return type to render::make_reader

Changed paths:
  M  render.php


Diff:

diff --git a/render.php b/render.php
index 5d62c0c9..f7b3e3e3 100644
--- a/render.php
+++ b/render.php
@@ -81,7 +81,7 @@
     exit(0);
 }
 
-function make_reader(Config $config, OutputHandler $outputHandler) {
+function make_reader(Config $config, OutputHandler $outputHandler): Reader {
     //Partial Rendering
     $idlist = $config->renderIds + $config->skipIds;
     if (!empty($idlist)) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.