Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of numerical configuration properties across PS5 and PS7 (…
…#262) `ConvertFrom-Json` defaults numbers to different types depending on the PowerShell version. PS5 defaults numbers to `[Int32]` while PS7 defaults numbers to `[Int64]`, but both versions default to `[Int32]` in a `[PSCustomObject]`. Due to this, if you had a number config value saved, on PS7 it would be ignored and the default value would be used because the expected and actual types wouldn't match. I've updated `Resolve-PropertyValue` to have equivalence logic for number types to avoid this issue.
- Loading branch information