Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed some PHP strict standards problems

  • Loading branch information...
commit e31adda61e6ec5b619db7f5e10d26e1d83ebfa09 1 parent 28f3814
Sebastian Staudt authored
2  lib/steam/servers/GoldSrcServer.php
@@ -43,7 +43,7 @@ class GoldSrcServer extends GameServer {
43 43 *
44 44 * @return MasterServer The GoldSrc master server
45 45 */
46   - public function getMaster() {
  46 + public static function getMaster() {
47 47 return new MasterServer(MasterServer::GOLDSRC_MASTER_SERVER);
48 48 }
49 49
2  lib/steam/servers/SourceServer.php
@@ -54,7 +54,7 @@ class SourceServer extends GameServer {
54 54 *
55 55 * @return MasterServer The Source master server
56 56 */
57   - public function getMaster() {
  57 + public static function getMaster() {
58 58 return new MasterServer(MasterServer::SOURCE_MASTER_SERVER);
59 59 }
60 60
4 lib/steam/sockets/RCONSocket.php
@@ -66,9 +66,9 @@ public function close() {
66 66 /**
67 67 * Sends the given RCON packet to the server
68 68 *
69   - * @param RCONPacket $dataPacket The RCON packet to send to the server
  69 + * @param SteamPacket $dataPacket The RCON packet to send to the server
70 70 */
71   - public function send(RCONPacket $dataPacket) {
  71 + public function send(SteamPacket $dataPacket) {
72 72 if(empty($this->socket)) {
73 73 $this->socket = new TCPSocket();
74 74 $this->socket->connect($this->ipAddress, $this->portNumber);

0 comments on commit e31adda

Please sign in to comment.
Something went wrong with that request. Please try again.