Skip to content

Commit

Permalink
Preserve old behavior on 32 bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
db-mobile committed Feb 6, 2025
1 parent dd86771 commit 89e923b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Propel/Generator/Model/PropelTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class PropelTypes
/**
* @var string
*/
public const BIGINT_NATIVE_TYPE = 'int';
public const BIGINT_NATIVE_TYPE = PHP_INT_SIZE === 8 ? 'int' : 'string';

/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion tests/Propel/Tests/Generator/Model/ColumnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ public function provideMappingNumericTypes()
['SMALLINT', 'int', true],
['TINYINT', 'int', true],
['INTEGER', 'int', true],
['BIGINT', 'int', true],
['BIGINT', PHP_INT_SIZE === 8 ? 'int' : 'string', PHP_INT_SIZE === 8],
['FLOAT', 'double', true],
['DOUBLE', 'double', true],
['NUMERIC', 'string', false],
Expand Down

0 comments on commit 89e923b

Please sign in to comment.