From 2e904eea85a3bfc954a25315b9ff483b83aec014 Mon Sep 17 00:00:00 2001 From: Anthony Birkett Date: Tue, 1 Jun 2021 22:11:49 +0100 Subject: [PATCH] Fix factory creating the wrong socket type. --- SourceQuery/SourceQueryFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SourceQuery/SourceQueryFactory.php b/SourceQuery/SourceQueryFactory.php index e7c9c15..52d5a52 100644 --- a/SourceQuery/SourceQueryFactory.php +++ b/SourceQuery/SourceQueryFactory.php @@ -11,7 +11,7 @@ use xPaw\SourceQuery\Socket\SourceSocket; final class SourceQueryFactory { - public static function createGoldSourceQuery(): SourceQuery + public static function createSourceQuery(): SourceQuery { $socket = new SourceSocket(); $rcon = new SourceRcon($socket); @@ -19,7 +19,7 @@ final class SourceQueryFactory return new SourceQuery($socket, $rcon); } - public static function createSourceQuery(): SourceQuery + public static function createGoldSourceQuery(): SourceQuery { $socket = new GoldSourceSocket(); $rcon = new GoldSourceRcon($socket);