File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ parameters:
3
3
inferPrivatePropertyTypeFromConstructor : true
4
4
checkMissingIterableValueType : false
5
5
checkGenericClassInNonGenericObjectType : false
6
+ excludePaths :
7
+ - src/SafeFunctions.php # Temporary exclude, delete this file in PHP ^8.0
6
8
ignoreErrors :
7
9
- "#Method JsonSerializable::jsonSerialize\\ (\\ ) invoked with 1 parameter , 0 required. #"
8
10
- " #Method .*::.* should return .* but returns .*TheCodingMachine\\\\TDBM\\\\AbstractTDBMObject #"
9
11
- " #Method .*::.* should return .* but returns TheCodingMachine\\\\TDBM\\\\ResultIterator #"
10
- - ' #Strict comparison using = == between string and false will always evaluate to false. #'
11
12
- " #Call to an undefined method object:: #"
12
13
- " #expects TheCodingMachine\\\\TDBM\\\\AbstractTDBMObject , object given. #"
13
14
- " #should return array<TheCodingMachine\\\\TDBM\\\\AbstractTDBMObject> but returns array<int , object> #"
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ class SafeFunctions
12
12
/**
13
13
* A wrapper around array_combine that never returns false.
14
14
*
15
+ * TODO: Remove once we support only PHP ^8.0
16
+ *
15
17
* @param array<int|string> $keys
16
18
* @param mixed[] $values
17
19
* @return mixed[]
Original file line number Diff line number Diff line change @@ -691,6 +691,7 @@ public function save(AbstractTDBMObject $object): void
691
691
$ this ->connection ->insert ($ quotedTableName , $ escapedDbRowData , $ types );
692
692
693
693
if (!$ isPkSet && count ($ primaryKeyColumns ) === 1 ) {
694
+ /** @var int|false $id @see OCI8Connection::lastInsertId() */
694
695
$ id = $ this ->connection ->lastInsertId ();
695
696
696
697
if ($ id === false ) {
You can’t perform that action at this time.
0 commit comments