Skip to content

Add non-breaking strict type declarations#26

Merged
lippserd merged 2 commits intomainfrom
modernize-code
Mar 13, 2026
Merged

Add non-breaking strict type declarations#26
lippserd merged 2 commits intomainfrom
modernize-code

Conversation

@BastianLedererIcinga
Copy link
Copy Markdown
Contributor

@BastianLedererIcinga BastianLedererIcinga commented Dec 9, 2025

Add strict type declarations to properties, function/method signatures, where
types are unambiguous and no inheritance or interface contract is affected.

Jan-Schuppik
Jan-Schuppik previously approved these changes Dec 10, 2025
Jan-Schuppik
Jan-Schuppik previously approved these changes Dec 11, 2025
sukhwinder33445
sukhwinder33445 previously approved these changes Mar 2, 2026
Copy link
Copy Markdown
Contributor

@sukhwinder33445 sukhwinder33445 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍🏽

sukhwinder33445
sukhwinder33445 previously approved these changes Mar 5, 2026
Copy link
Copy Markdown
Contributor

@sukhwinder33445 sukhwinder33445 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
@lippserd, please take a look at this.

@lippserd lippserd changed the title Modernize code Add non-breaking strict type declarations Mar 12, 2026
@lippserd
Copy link
Copy Markdown
Member

I moved the breaking changes requiring a new version of ipl-stdlib to @nilmerg's original work in #13.

BastianLedererIcinga and others added 2 commits March 12, 2026 21:06
Add strict type declarations to properties, function/method signatures, where
types are unambiguous and no inheritance or interface contract is affected.

Bump minimum PHP requirement to 7.4, as typed properties require at least
that version.

Co-authored-by: Eric Lippmann <eric.lippmann@icinga.com>
lippserd
lippserd previously approved these changes Mar 12, 2026
Copy link
Copy Markdown
Member

@lippserd lippserd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked all consumers and confirmed that none of the changes introduce any backwards-incompatible effects for them.

There is one place in Icinga Web's Form that uses the Translator's methods internally and passes arguments from an untyped method, but this is fine because we always call with the correct type.

@lippserd lippserd merged commit 2723696 into main Mar 13, 2026
13 checks passed
@lippserd lippserd deleted the modernize-code branch March 13, 2026 10:35
@lippserd lippserd added this to the v0.3.0 milestone Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants