Browse Source

[php] PDO::ATTR_DRIVER_NAME is an integer (#10319)

Aleksandr Kuzmenko 4 years ago
parent
commit
6eefbccda4
2 changed files with 2 additions and 1 deletions
  1. 1 0
      extra/CHANGES.txt
  2. 1 1
      std/php/db/PDO.hx

+ 1 - 0
extra/CHANGES.txt

@@ -6,6 +6,7 @@
 	js : workaround to fix sourcemaps on Firefox in Windows (#10217)
 	hl : add clipboard support in hl 1.12 (#10320)
 	cs/java : fixed rest arguments for cases when only one argument is provided (#10315)
+	php : fixed type of `php.db.PDO.ATTR_DRIVER_NAME` (#10319)
 
 2021-07-01 4.2.3:
 

+ 1 - 1
std/php/db/PDO.hx

@@ -61,7 +61,7 @@ extern class PDO {
 	@:phpClassConst static final ATTR_CASE:Int;
 	@:phpClassConst static final ATTR_CURSOR_NAME:Int;
 	@:phpClassConst static final ATTR_CURSOR:Int;
-	@:phpClassConst static final ATTR_DRIVER_NAME:String;
+	@:phpClassConst static final ATTR_DRIVER_NAME:Int;
 	@:phpClassConst static final ATTR_ORACLE_NULLS:Int;
 	@:phpClassConst static final ATTR_PERSISTENT:Int;
 	@:phpClassConst static final ATTR_STATEMENT_CLASS:Int;