Skip to content

Support PHP 8.5#1315

Open
BastianLedererIcinga wants to merge 6 commits intomainfrom
support-php-8.4/8.5
Open

Support PHP 8.5#1315
BastianLedererIcinga wants to merge 6 commits intomainfrom
support-php-8.4/8.5

Conversation

@BastianLedererIcinga
Copy link
Contributor

@BastianLedererIcinga BastianLedererIcinga commented Dec 3, 2025

Changes that had to be addressed

PHP 8.3 -> PHP 8.4

Migration docs: https://www.php.net/manual/en/migration84

  • Function parameters that are null by default must be declared nullable.

PHP 8.4 -> PHP 8.5

Migration Docs: https://www.php.net/manual/en/migration85

  • Driver specific PDO constants are deprecated this affects some MySQL driver constants,
    instead of PDO::SQL<constant_name> use Pdo\Mysql::<constant_name>.
  • ReflectionProperty::setAccessible has been deprecated, but did not have any effect since PHP 8.1.
  • Passing null as $key parameter to array_key_exists() is deprecated

resolves: #1312

@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Dec 3, 2025
@BastianLedererIcinga BastianLedererIcinga self-assigned this Dec 3, 2025
sukhwinder33445
sukhwinder33445 previously approved these changes Dec 5, 2025
Copy link
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.

The code looks good, @Jan-Schuppik, please approve it when the UI tests are also fine.

sukhwinder33445
sukhwinder33445 previously approved these changes Dec 5, 2025
Jan-Schuppik
Jan-Schuppik previously approved these changes Dec 8, 2025
@lippserd lippserd changed the title Support php 8.4/8.5 Support PHP 8.5 Jan 15, 2026
{
$column = $condition->metaData()->get('columnName');
if (! isset($this->properties[$column])) {
if (! isset($column) || ! isset($this->properties[$column])) {
Copy link
Member

Choose a reason for hiding this comment

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

@lippserd
Copy link
Member

@BastianLedererIcinga Please rebase.

Implcitly nullable parameters are deprecated since PHP-8.4
typed parameters that default to null must include `null` in their type
The method has no effect since php 8.1 and is deprecated in php 8.5
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.
@nilmerg nilmerg modified the milestones: 1.3.1, 1.4.0 Mar 5, 2026
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.

PHP 8.4/8.5 Support

5 participants