Skip to content

Commit 7d86a75

Browse files
committed
additional build ci fixes - phpstan
1 parent 430adc1 commit 7d86a75

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

lib/Constants.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
<?php
22

33
if (!\defined('CONSTANTS')) {
4+
5+
/**
6+
* ezsqlModel Constants
7+
*/
8+
\defined('EZSQL_VERSION') or \define('EZSQL_VERSION', '4.0.0');
9+
\defined('OBJECT') or \define('OBJECT', 'OBJECT');
10+
\defined('ARRAY_A') or \define('ARRAY_A', 'ARRAY_A');
11+
\defined('ARRAY_N') or \define('ARRAY_N', 'ARRAY_N');
12+
413
// Error messages
514
\define('MISSING_CONFIGURATION', '<b>Fatal Error:</b> Missing configuration details to connect to database');
615
\define('CONFIGURATION_REQUIRES', '<b>Fatal Error:</b> This configuration requires ezsqlModel (ezsqlModel.php) to be included/loaded before it can be used');

lib/ezQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public function selecting(string $table = null, $columnFields = '*', ...$conditi
479479
$sql .= $where;
480480
if ($getSelect_result)
481481
return (($this->isPrepareOn()) && !empty($this->prepareValues()))
482-
? $this->get_results($sql, OBJECT, true)
482+
? $this->get_results($sql, \OBJECT, true)
483483
: $this->get_results($sql);
484484
return $sql;
485485
}

lib/ezsqlModel.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
use ezsql\ezQuery;
66
use ezsql\ezsqlModelInterface;
77

8-
/**
9-
* ezsqlModel Constants
10-
*/
11-
defined('EZSQL_VERSION') or define('EZSQL_VERSION', '4.0.0');
12-
defined('OBJECT') or define('OBJECT', 'OBJECT');
13-
defined('ARRAY_A') or define('ARRAY_A', 'ARRAY_A');
14-
defined('ARRAY_N') or define('ARRAY_N', 'ARRAY_N');
15-
168
/**
179
* Core class containing common functions to manipulate query result
1810
* sets once returned

0 commit comments

Comments
 (0)