Version 5.0.0 beta 1

This commit is contained in:
Neo committed 2025-12-19 16:27:35 -08:00
1 parent 25ddeb65d6
commit 15c7beabc5
6736 files changed
+627902 -497943

No files matched your search

+12 -10
View File
@@ -10,7 +10,9 @@
namespace IPS\Db;
if( !\defined( 'IPS\\SUITE_UNIQUE_KEY' ) )
use function defined;
if( !defined( 'IPS\\SUITE_UNIQUE_KEY' ) )
{
die( "Unauthorized Access" );
}
@@ -18,26 +20,26 @@ if( !\defined( 'IPS\\SUITE_UNIQUE_KEY' ) )
/**
* Binding Class for Prepared Statements
*/
class _Bind
class Bind
{
/**
* @brief Values
*/
public $values = array();
public array $values = array();
/**
* @brief Types
*/
protected $types = '';
protected string $types = '';
/**
* Add value
*
* @param string $type Type
* @param string $type Type
* @param mixed $value Value
* @return void
*/
public function add( $type, $value )
public function add( string $type, mixed $value ) : void
{
$this->values[] = $value;
$this->types .= $type;
@@ -48,8 +50,8 @@ class _Bind
*
* @return bool
*/
public function haveBinds()
{
public function haveBinds(): bool
{
return !( empty( $this->values ) );
}
@@ -59,8 +61,8 @@ class _Bind
* @see <a href='http://php.net/manual/en/mysqli-stmt.bind-param.php'>mysqli_stmt::bind_param</a>
* @return array
*/
public function get()
{
public function get(): array
{
$values = array();
foreach ( $this->values as $k => $v )
{