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; }