Browse Source

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

Alexander Kuzmenko 6 năm trước cách đây
mục cha
commit
5aa3289d35
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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