From 419f66ff7236f1c842624514e3e2b612e03c2790 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Thu, 22 Oct 2015 00:10:43 +0300 Subject: [PATCH] And now make it work --- SourceQuery/BaseSocket.php | 2 +- SourceQuery/Socket.php | 2 +- Tests/Tests.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SourceQuery/BaseSocket.php b/SourceQuery/BaseSocket.php index 473c370..7ef4d8d 100644 --- a/SourceQuery/BaseSocket.php +++ b/SourceQuery/BaseSocket.php @@ -36,7 +36,7 @@ abstract public function Write( $Header, $String = '' ); abstract public function Read( $Length = 1400 ); - protected function ReadInternal( $Buffer, callable $SherlockFunction ) + protected function ReadInternal( $Buffer, $SherlockFunction ) { if( $Buffer->Remaining( ) === 0 ) { diff --git a/SourceQuery/Socket.php b/SourceQuery/Socket.php index 8c85f4b..3df7f4b 100644 --- a/SourceQuery/Socket.php +++ b/SourceQuery/Socket.php @@ -78,7 +78,7 @@ return $Buffer; } - private function Sherlock( $Buffer, $Length ) + public function Sherlock( $Buffer, $Length ) { $Data = FRead( $this->Socket, $Length ); diff --git a/Tests/Tests.php b/Tests/Tests.php index d513f99..aa24dc9 100644 --- a/Tests/Tests.php +++ b/Tests/Tests.php @@ -40,7 +40,7 @@ return $Buffer; } - private function Sherlock( $Buffer, $Length ) + public function Sherlock( $Buffer, $Length ) { return false; }