Skip to content

Upgrade all dependencies - February 2026#23

Merged
WengerK merged 11 commits intodevfrom
featur/upgrade-februrary-2026
Feb 23, 2026
Merged

Upgrade all dependencies - February 2026#23
WengerK merged 11 commits intodevfrom
featur/upgrade-februrary-2026

Conversation

@WengerK
Copy link
Member

@WengerK WengerK commented Feb 23, 2026

💬 Describe the pull request

Upgrade all dependencies - February 2026

Root cause: Psalm's strict binary operands mode (psalm.dev/058) forbids mixing int and float in arithmetic without explicit casts.

Changes made:
1. degToSex / degToSec — Changed return type from float|int to float, added $angle = (float) $angle; at the top, and replaced all int literals in arithmetic with float literals (60 → 60.0, 100 → 100.0, etc.) and added (float) casts on $deg and $min before arithmetic.
2. fromMN95ToWGSLatitude / fromMN95ToWGSLongitude — Cast float|int params with (float) $east / (float) $north, and changed integer constants to float literals (2600000 → 2600000.0, 1000000 → 1000000.0, 100 / 36 → 100.0 / 36.0).
3. fromMN03ToWGSLatitude / fromMN03ToWGSLongitude — Changed integer constants to float literals (600000 → 600000.0, 200000 → 200000.0, 1000000 → 1000000.0, 100 / 36 → 100.0 / 36.0).
4. All four WGSToMN* methods — Changed / 10000 → / 10000.0 in the auxiliary value calculations (the subtraction operands were already float literals, so once degToSec returns float, those lines are clean).
@WengerK WengerK force-pushed the featur/upgrade-februrary-2026 branch 2 times, most recently from c3f503a to 5abd5bb Compare February 23, 2026 12:25
@WengerK WengerK force-pushed the featur/upgrade-februrary-2026 branch from 5abd5bb to 7ef52b5 Compare February 23, 2026 12:26
@WengerK WengerK marked this pull request as ready for review February 23, 2026 12:41
@WengerK WengerK merged commit 50ef4af into dev Feb 23, 2026
10 checks passed
@WengerK WengerK deleted the featur/upgrade-februrary-2026 branch February 23, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant