@@ -198,9 +198,9 @@ protected function getDefaultValueString(Column $column)
198198 if (!in_array ($ val , $ valueSet )) {
199199 throw new EngineException (sprintf ('Default Value "%s" is not among the enumerated values ' , $ val ));
200200 }
201- $ defaultValue = array_search ($ val , $ valueSet );
201+ $ defaultValue = ( string ) array_search ($ val , $ valueSet );
202202 } elseif ($ column ->isSetType ()) {
203- $ defaultValue = SetColumnConverter::convertToInt ($ val , $ column ->getValueSet ());
203+ $ defaultValue = ( string ) SetColumnConverter::convertToInt ($ val , $ column ->getValueSet ());
204204 } elseif ($ column ->isPhpPrimitiveType ()) {
205205 settype ($ val , $ column ->getPhpType ());
206206 $ defaultValue = var_export ($ val , true );
@@ -4186,9 +4186,9 @@ protected function addFKAccessor(&$script, ForeignKey $fk)
41864186 if ($ rightValueOrColumn instanceof Column) {
41874187 $ localColumns [$ rightValueOrColumn ->getPosition ()] = '$this-> ' . $ clo ;
41884188
4189- if ($ cptype == 'int ' || $ cptype == 'float ' || $ cptype == 'double ' ) {
4189+ if ($ cptype === 'int ' || $ cptype === 'float ' || $ cptype = == 'double ' ) {
41904190 $ conditional .= $ and . '$this-> ' . $ clo . ' != 0 ' ;
4191- } elseif ($ cptype == 'string ' ) {
4191+ } elseif ($ cptype === 'string ' ) {
41924192 $ conditional .= $ and . '($this-> ' . $ clo . ' !== "" && $this-> ' . $ clo . ' !== null) ' ;
41934193 } else {
41944194 $ conditional .= $ and . '$this-> ' . $ clo . ' !== null ' ;
@@ -6510,7 +6510,7 @@ protected function addDoInsertBodyRaw()
65106510 }
65116511
65126512 // if non auto-increment but using sequence, get the id first
6513- if (!$ platform ->isNativeIdMethodAutoIncrement () && $ table ->getIdMethod () == 'native ' ) {
6513+ if (!$ platform ->isNativeIdMethodAutoIncrement () && $ table ->getIdMethod () === 'native ' ) {
65146514 $ column = $ table ->getFirstPrimaryKeyColumn ();
65156515 if (!$ column ) {
65166516 throw new PropelException ('Cannot find primary key column in table ` ' . $ table ->getName () . '`. ' );
@@ -6571,7 +6571,7 @@ protected function addDoInsertBodyRaw()
65716571 " ;
65726572
65736573 // if auto-increment, get the id after
6574- if ($ platform ->isNativeIdMethodAutoIncrement () && $ table ->getIdMethod () == 'native ' ) {
6574+ if ($ platform ->isNativeIdMethodAutoIncrement () && $ table ->getIdMethod () === 'native ' ) {
65756575 $ script .= "
65766576 try { " ;
65776577 $ script .= $ platform ->getIdentifierPhp ('$pk ' , '$con ' , $ primaryKeyMethodInfo );
0 commit comments