Skip to content

Commit bc14db6

Browse files
committed
Very minor refactoring.
1 parent f296c7d commit bc14db6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/CLI.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: CLI handler (last modified: 2021.01.10).
11+
* This file: CLI handler (last modified: 2021.07.10).
1212
*/
1313

1414
namespace phpMussel\CLI;
@@ -40,6 +40,7 @@ class CLI
4040
*
4141
* @param \phpMussel\Core\Loader $Loader The instantiated loader object, passed by reference.
4242
* @param \phpMussel\Core\Scanner $Scanner The instantiated scanner object, passed by reference.
43+
* @return void
4344
*/
4445
public function __construct(\phpMussel\Core\Loader &$Loader, \phpMussel\Core\Scanner &$Scanner)
4546
{
@@ -82,7 +83,7 @@ public function __construct(\phpMussel\Core\Loader &$Loader, \phpMussel\Core\Sca
8283
echo $this->Loader->L10N->getString('cli_ln1') . "\n" . $this->Loader->L10N->getString('cli_ln2') . "\n\n" . $this->Loader->L10N->getString('cli_ln3');
8384

8485
/** Open STDIN. */
85-
$Handle = fopen('php://stdin', 'r');
86+
$Handle = fopen('php://stdin', 'rb');
8687

8788
/** This repeats until the client exits ("quit", "q", "exit", etc). */
8889
while (true) {

0 commit comments

Comments
 (0)