@@ -27,7 +27,7 @@ private function Add(int $paramIndex, $value, string $type, $length = NULL): voi
27
27
* @param type $value
28
28
* @param type $length
29
29
*/
30
- public function setString (int $ paramIndex , string $ value , $ length = NULL ): void
30
+ public function setString (int $ paramIndex , ? string $ value , $ length = NULL ): void
31
31
{
32
32
$ this ->Add ($ paramIndex , $ value , "s " , $ length );
33
33
}
@@ -38,7 +38,7 @@ public function setString(int $paramIndex, string $value, $length = NULL): void
38
38
* @param type $value
39
39
* @param type $length
40
40
*/
41
- public function setInteger (int $ paramIndex , int $ value , $ length = NULL ): void
41
+ public function setInteger (int $ paramIndex , ? int $ value , $ length = NULL ): void
42
42
{
43
43
$ this ->Add ($ paramIndex , $ value , "i " , $ length );
44
44
}
@@ -49,7 +49,7 @@ public function setInteger(int $paramIndex, int $value, $length = NULL): void
49
49
* @param type $value
50
50
* @param type $length
51
51
*/
52
- public function setDouble (int $ paramIndex , float $ value , $ length = NULL ): void
52
+ public function setDouble (int $ paramIndex , ? float $ value , $ length = NULL ): void
53
53
{
54
54
$ this ->Add ($ paramIndex , $ value , "d " , $ length );
55
55
}
@@ -74,9 +74,9 @@ public function setBlob(int $paramIndex, $value, $length = NULL): void
74
74
* @param type $length
75
75
* @return void
76
76
*/
77
- public function setDateTime (int $ paramIndex , int $ secondsSinceUnixEpoch ): void
77
+ public function setDateTime (int $ paramIndex , ? int $ secondsSinceUnixEpoch ): void
78
78
{
79
- $ datetime = date ("Y-m-d H:i:s " , $ secondsSinceUnixEpoch );
79
+ $ datetime = ( $ secondsSinceUnixEpoch != null ) ? date ("Y-m-d H:i:s " , $ secondsSinceUnixEpoch ) : null ;
80
80
$ this ->Add ($ paramIndex , $ datetime , "s " , NULL );
81
81
}
82
82
0 commit comments