Fix querying possible update versions in PackageUpdateDispatcher::getAvailableUpdates()
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 19 Jul 2022 09:04:00 +0000 (11:04 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 19 Jul 2022 09:04:00 +0000 (11:04 +0200)
commitac3585e1104ae5a6821eb2395ad2dfa26c64eb07
treef43e6033b310756773a4266ea48d0014245b345f
parent6255b9d9d4db89147470ca476f31cc47497afd88
Fix querying possible update versions in PackageUpdateDispatcher::getAvailableUpdates()

The previous `LEFT JOIN` might return `packageVersion = NULL` if a package
server does not have any accessible versions for an installed package,
ultimately erroring out in PHP 8.1, because `NULL` is passed to a `string`
parameter.

see https://www.woltlab.com/community/thread/296513-passing-null-to-parameter-3-subject-of-type-array-string-is-deprecated/
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php