Explorar o código

[php] fix "Parameter default value should be constant"

Alexander Kuzmenko %!s(int64=6) %!d(string=hai) anos
pai
achega
5aa3289d35
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/php/Global.hx

+ 1 - 1
std/php/Global.hx

@@ -1142,7 +1142,7 @@ extern class Global {
 	/**
 		@see http://php.net/manual/en/function.socket-read.php
 	**/
-	static function socket_read( resource:Resource, length:Int, type:Int=Const.PHP_BINARY_READ ) : EitherType<Bool, String>;
+	static function socket_read( resource:Resource, length:Int, ?type:Int ) : EitherType<Bool, String>;
 
 	/**
 		@see http://php.net/manual/en/function.socket-write.php