Commit 9118a5a7 authored by Tim Schoondergang's avatar Tim Schoondergang

Merge branch '12-docblock-aanpassingen-after-phpstan-check' into 'master'

Resolve "docblock aanpassingen after phpstan check"

Closes #12

See merge request !24
parents 7d454fa1 cdfa8df4
{
"name": "timmit/db-mysql",
"description": "A simple DB layer in PHP for using MySQL(i)",
"version": "v4.0.1",
"version": "v4.0.2",
"keywords": ["DB", "MySQL", "MySQLi", "database", "DB layer", "database layer"],
"license": "MIT",
"homepage": "http://www.TiMMiT.nl/",
......
......@@ -86,13 +86,13 @@ namespace TiMMiT\MySQL;
/**
* Created DB connection
* @var DB
* @var \mysqli|false
*/
public static $mlink;
/**
* Created DBwrite connection
* @var DB
* @var \mysqli|false
*/
public static $mlinkWrite;
......@@ -173,7 +173,7 @@ namespace TiMMiT\MySQL;
/**
* Disconnect to DB
* @return void
* @return boolean
*/
public static function disconnect() {
self::addToStats(__FUNCTION__);
......@@ -415,7 +415,7 @@ namespace TiMMiT\MySQL;
* Make a hashed Id from seed
* @param string $hash
* @param int $len
* @param mix $seed
* @param mixed $seed
* @param string $add
* @return string
*/
......@@ -478,11 +478,11 @@ namespace TiMMiT\MySQL;
/**
* Make where statement from parameters
* @param array $param paramater or parameters as assoc array
* @param array|false $param paramater or parameters as assoc array
* @param string $table
* @return string
*/
public static function getWhereFromParam($param=1,$table=''){
public static function getWhereFromParam($param=false,$table=''){
self::addToStats(__FUNCTION__);
if(is_array($param) && count($param)>0){
$where = "(";
......@@ -527,6 +527,12 @@ namespace TiMMiT\MySQL;
}
/**
* @param string $queries
* @param boolean $execute
*
* @return array
*/
public static function dbDelta( $queries = '', $execute = true ) {
self::addToStats(__FUNCTION__);
// Separate individual queries into an array
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment