Skip to content

Commit

Permalink
Change to static method
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hunziker committed Oct 14, 2017
1 parent 548644f commit 0338762
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions libraries/src/Client/FtpClient.php
Expand Up @@ -154,8 +154,7 @@ public function __construct(array $options = array())

if (FTP_NATIVE)
{
$buffer = new BufferStreamHandler;
$buffer->stream_register();
BufferStreamHandler::stream_register();
}
}

Expand Down
5 changes: 2 additions & 3 deletions libraries/src/Utility/BufferStreamHandler.php
Expand Up @@ -11,8 +11,7 @@
defined('JPATH_PLATFORM') or die;

// Workaround for B/C. Will be removed with 4.0
$buffer = new BufferStreamHandler;
$buffer->stream_register();
BufferStreamHandler::stream_register();

/**
* Generic Buffer stream handler
Expand Down Expand Up @@ -63,7 +62,7 @@ class BufferStreamHandler
*
* @since __DEPLOY_VERSION__
*/
public function stream_register()
public static function stream_register()
{
if (!self::$registered)
{
Expand Down

0 comments on commit 0338762

Please sign in to comment.