浏览代码

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

Alexander Kuzmenko 6 年之前
父节点
当前提交
5aa3289d35
共有 1 个文件被更改,包括 1 次插入1 次删除
  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