Skip to content

Ipl forward compatibility#1340

Open
BastianLedererIcinga wants to merge 10 commits intosupport-php-8.4/8.5from
modernize-code
Open

Ipl forward compatibility#1340
BastianLedererIcinga wants to merge 10 commits intosupport-php-8.4/8.5from
modernize-code

Conversation

@BastianLedererIcinga
Copy link
Contributor

@BastianLedererIcinga BastianLedererIcinga commented Mar 2, 2026

This PR ensures forward compatibility with the modernized ipl-orm

Add types for:

  • subclasses of UnionModel
  • subclasses of ResultSet
  • implementations of QueryAwareBehavior
  • implementations of RewriteFilterBehavior

@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Mar 2, 2026
@BastianLedererIcinga BastianLedererIcinga force-pushed the modernize-code branch 3 times, most recently from cd3dd85 to d8a9fdb Compare March 4, 2026 12:56
sukhwinder33445
sukhwinder33445 previously approved these changes Mar 6, 2026
@BastianLedererIcinga BastianLedererIcinga changed the title Modernize code Ipl forward compatibility Mar 6, 2026
@BastianLedererIcinga BastianLedererIcinga force-pushed the modernize-code branch 3 times, most recently from 1981131 to b38a396 Compare March 9, 2026 12:29
@BastianLedererIcinga BastianLedererIcinga changed the base branch from main to support-php-8.4/8.5 March 9, 2026 12:31
The constant is deprecated since php-8.5 but the replacement
`Pdo\Mysql::ATTR_INIT_COMMAND` is only available since php-8.4
Passing `null` as `$key` to `array_key_exists()` or using it
as an array key is deprecated since php-8.5
Errors that were no longer reported have been removed,
keeping them in the baseline could hide future errors.
Since PHP 7.x is no longer supported the 7.x baseline is removed
and it is no longer necessary have multiple baseline files.
Ensure the key `view` of the `ViewModeSwitcher` is not populated with `null`
this previously caused PHP-8.5 deprecation warnigs in
`ViewModeSwitcher::getViewMode()` because null was passed as
`$key` to `array_key_exists()`
Add return types to inheritos of `UnionModel` to ensure compatibility
with ipl-orm.
Add return type `static` to implementations of `QueryAwareBehavior::setQuery()`
to ensure forward-compatibility with ipl-orm.
Add return types to implementations of `RewriteFilterbehavior`
to ensure forward-compatibility with ipl-orm
Add return types to ensure forward-compatibility with ipl-orm
Add retrun types to subclasses of `ResultSet` to make them forward-compatible
with the ipl-orm
@BastianLedererIcinga BastianLedererIcinga force-pushed the support-php-8.4/8.5 branch 2 times, most recently from 49d97b4 to 3caa773 Compare March 10, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed CLA is signed by all contributors of a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants