Przeglądaj źródła

[php] added an overload for session_set_cookie_params (closes #9507)

Aleksandr Kuzmenko 5 lat temu
rodzic
commit
7a63ab5256
2 zmienionych plików z 2 dodań i 0 usunięć
  1. 1 0
      extra/CHANGES.txt
  2. 1 0
      std/php/Global.hx

+ 1 - 0
extra/CHANGES.txt

@@ -4,6 +4,7 @@
 
 
 	macro : fixed type intersection syntax in macro reification (#9404)
 	macro : fixed type intersection syntax in macro reification (#9404)
 	lua : fixed lua code generation without `--main` compilation argument (#9489)
 	lua : fixed lua code generation without `--main` compilation argument (#9489)
+	php : added an overload signature for `session_set_cookie_params` function (#9507)
 	nullsafety : fixed various scenarios of `if..else` branching (#9474)
 	nullsafety : fixed various scenarios of `if..else` branching (#9474)
 
 
 2020-22-05 4.1.1
 2020-22-05 4.1.1

+ 1 - 0
std/php/Global.hx

@@ -1385,6 +1385,7 @@ extern class Global {
 	/**
 	/**
 		@see http://php.net/manual/en/function.session-set-cookie-params.php
 		@see http://php.net/manual/en/function.session-set-cookie-params.php
 	**/
 	**/
+	@:overload(function(options:NativeStructArray<{?lifetime:Int, ?path:String, ?domain:String, ?secure:Bool, ?httponly:Bool, ?samesite:String}>):Bool {})
 	static function session_set_cookie_params(lifetime:Int, ?path:String, ?domain:String, secure:Bool = false, httponly:Bool = false):Bool;
 	static function session_set_cookie_params(lifetime:Int, ?path:String, ?domain:String, secure:Bool = false, httponly:Bool = false):Bool;
 
 
 	/**
 	/**