Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep NVARCHAR(MAX) length as -1 (#6251)
<!-- Fill in the relevant information below to help triage your pull request. --> | Q | A |------------- | ----------- | Type | bug | Fixed issues | #6038 #### Summary As described in the mentioned issue, `-0.5` from `-1 / 2` will raise type error when trying to `setLength` ``` Argument #1 ($length) must be of type ?int, float given ``` https://github.com/doctrine/dbal/blob/8bc0d9ae42f20af54120396ef7a1b3248479c2b5/src/Schema/Column.php#L78 This PR check if length is `-1` and keep it as is before perform division.
- Loading branch information