File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ public function getColumns(string $table): array
145
145
'table ' => $ table ,
146
146
'nativetype ' => strtoupper ($ type [0 ]),
147
147
'size ' => isset ($ type [1 ]) ? (int ) $ type [1 ] : null ,
148
- 'nullable ' => $ row ['notnull ' ] == ' 0 ' ,
148
+ 'nullable ' => $ row ['notnull ' ] === 0 ,
149
149
'default ' => $ row ['dflt_value ' ],
150
150
'autoincrement ' => $ meta && preg_match ($ pattern , (string ) $ meta ['sql ' ]),
151
151
'primary ' => $ row ['pk ' ] > 0 ,
@@ -176,7 +176,7 @@ public function getIndexes(string $table): array
176
176
foreach ($ indexes as $ index => $ values ) {
177
177
$ column = $ indexes [$ index ]['columns ' ][0 ];
178
178
foreach ($ columns as $ info ) {
179
- if ($ column == $ info ['name ' ]) {
179
+ if ($ column === $ info ['name ' ]) {
180
180
$ indexes [$ index ]['primary ' ] = (bool ) $ info ['primary ' ];
181
181
break ;
182
182
}
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public function getPrimaryAutoincrementKey(string $table): ?string
86
86
87
87
// Search for autoincrement key from simple primary key
88
88
foreach ($ this ->getColumns ($ table ) as $ column ) {
89
- if ($ column ['name ' ] == $ primaryKey ) {
89
+ if ($ column ['name ' ] === $ primaryKey ) {
90
90
return $ column ['autoincrement ' ] ? $ column ['name ' ] : null ;
91
91
}
92
92
}
You can’t perform that action at this time.
0 commit comments