phan checks and updates
This commit is contained in:
@@ -132,6 +132,8 @@ return [
|
|||||||
// start ignore annotations
|
// start ignore annotations
|
||||||
'PhanUnextractableAnnotationElementName',
|
'PhanUnextractableAnnotationElementName',
|
||||||
'PhanUnextractableAnnotationSuffix',
|
'PhanUnextractableAnnotationSuffix',
|
||||||
|
// enum problems in comments
|
||||||
|
'PhanCommentObjectInClassConstantType'
|
||||||
],
|
],
|
||||||
|
|
||||||
// Override to hardcode existence and types of (non-builtin) globals in the global scope.
|
// Override to hardcode existence and types of (non-builtin) globals in the global scope.
|
||||||
|
|||||||
@@ -75,6 +75,14 @@ $db->dbResetEncoding();
|
|||||||
|
|
||||||
// empty calls, none of the below should fail
|
// empty calls, none of the below should fail
|
||||||
//
|
//
|
||||||
|
$db->dbGetCursor();
|
||||||
|
//
|
||||||
|
$db->dbGetCursorExt();
|
||||||
|
//
|
||||||
|
$db->dbGetCursorPos('SELECT foo', ['bar']);
|
||||||
|
//
|
||||||
|
$db->dbGetCursorNumRows('SELECT foo', ['bar']);
|
||||||
|
//
|
||||||
$db->dbGetInsertPKName();
|
$db->dbGetInsertPKName();
|
||||||
//
|
//
|
||||||
$db->dbGetInsertPK();
|
$db->dbGetInsertPK();
|
||||||
|
|||||||
@@ -340,6 +340,7 @@ class IO
|
|||||||
// 4: convert numeric/floatN to float (CONVERT_NUMERIC)
|
// 4: convert numeric/floatN to float (CONVERT_NUMERIC)
|
||||||
// 8: convert bytea to string data (CONVERT_BYTEA)
|
// 8: convert bytea to string data (CONVERT_BYTEA)
|
||||||
/** @var int type settings as bit mask, 0 for off, anything >2 will aways set 1 too */
|
/** @var int type settings as bit mask, 0 for off, anything >2 will aways set 1 too */
|
||||||
|
/** @phan-suppress-next-line PhanInvalidConstantExpression PhanUndeclaredClassConstant */
|
||||||
private int $convert_type = Convert::off->value;
|
private int $convert_type = Convert::off->value;
|
||||||
// FOR BELOW: (This should be private and only readable through some method)
|
// FOR BELOW: (This should be private and only readable through some method)
|
||||||
// cursor array for cached readings
|
// cursor array for cached readings
|
||||||
|
|||||||
Reference in New Issue
Block a user