Skip to content

Conversation

@sukhwinder33445
Copy link
Contributor

@sukhwinder33445 sukhwinder33445 commented Dec 9, 2025

Modernize and clean up the codebase by adopting the latest PHP features and functions.

Changes made:

  • Add data types for properties, parameters, and method return values
  • Remove the unnecessary InAndNotInUtils trait, as it was only introduced to reduce phpstan errors
  • Replace switch statements with match expressions where possible
  • Optimize imports

@cla-bot cla-bot bot added the cla/signed label Dec 9, 2025
@sukhwinder33445 sukhwinder33445 self-assigned this Dec 9, 2025
@sukhwinder33445 sukhwinder33445 changed the base branch from main to support-php-8.4/8.5 December 9, 2025 08:19
@sukhwinder33445 sukhwinder33445 force-pushed the modernize-code branch 2 times, most recently from eefa5b5 to 8686b59 Compare December 9, 2025 10:51
@BastianLedererIcinga
Copy link
Contributor

The InAndNotUtils trait is currently incompatible with ipl\Stdlib\Filter\Condition.

@sukhwinder33445 sukhwinder33445 force-pushed the modernize-code branch 3 times, most recently from 589584f to c0df0ec Compare December 11, 2025 08:00
@BastianLedererIcinga
Copy link
Contributor

The rest looks good.

@BastianLedererIcinga BastianLedererIcinga force-pushed the support-php-8.4/8.5 branch 2 times, most recently from 2ebbbb8 to 9aaf2fd Compare December 18, 2025 15:01
Base automatically changed from support-php-8.4/8.5 to main January 7, 2026 13:00
@lippserd lippserd dismissed BastianLedererIcinga’s stale review January 7, 2026 13:00

The base branch was changed.

- Remove now obsolete throw annotation and imports
Copy link
Contributor

@BastianLedererIcinga BastianLedererIcinga left a comment

Choose a reason for hiding this comment

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

Local unit tests all pass when using the other modernize branches.

@sukhwinder33445
Copy link
Contributor Author

Tests will pass once Icinga/ipl-stdlib#63 is merged.

@sukhwinder33445
Copy link
Contributor Author

This PR introduces some breaking changes which should be reverted, such as changes to interfaces, base classes, or classes that may be extended. Could one of you please take over? @BastianLedererIcinga @Jan-Schuppik

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