@@ -73,7 +73,8 @@ public static function trunc($floatnumber) {
7373
7474 /**
7575 * @param int|null $variable
76- * @param int $increment
76+ * @param-out int $variable
77+ * @param int $increment
7778 *
7879 * @return bool
7980 */
@@ -115,7 +116,7 @@ public static function intValueSupported($num) {
115116 // check if integers are 64-bit
116117 static $ hasINT64 = null ;
117118 if ($ hasINT64 === null ) { // 10x faster than is_null()
118- /** @var int|float|false $bigInt */
119+ /** @var int|float|object $bigInt */
119120 $ bigInt = pow (2 , 31 );
120121 $ hasINT64 = is_int ($ bigInt ); // 32-bit int are limited to (2^31)-1
121122 if (!$ hasINT64 && !defined ('PHP_INT_MIN ' )) {
@@ -442,7 +443,7 @@ public static function BigEndian2String($number, $minbytes=1, $synchsafe=false,
442443 }
443444
444445 /**
445- * @param int $number
446+ * @param int|string $number
446447 *
447448 * @return string
448449 */
@@ -1741,7 +1742,7 @@ public static function EmbeddedLookup($key, $begin, $end, $file, $name) {
17411742 // METHOD B: cache all keys in this lookup - more memory but faster on next lookup of not-previously-looked-up key
17421743 //$cache[$file][$name][substr($line, 0, $keylength)] = trim(substr($line, $keylength + 1));
17431744 $ explodedLine = explode ("\t" , $ line , 2 );
1744- $ ThisKey = ( isset ( $ explodedLine [0 ]) ? $ explodedLine [ 0 ] : '' ) ;
1745+ $ ThisKey = $ explodedLine [0 ];
17451746 $ ThisValue = (isset ($ explodedLine [1 ]) ? $ explodedLine [1 ] : '' );
17461747 $ cache [$ file ][$ name ][$ ThisKey ] = trim ($ ThisValue );
17471748 }
0 commit comments