Repository navigation
Conversation
|
I'm not a big fan with such BC break (and hard to find one) All people using P.S. yes BC break are possible in 8, and yes this seems a better API, btw, if we can avoid it... |
|
I'm not sure that the BC break is actually a thing in practise. I think the case that And those who are looking for PHP 7 and 8 compatibility, could test for So I'm slightly in favor of this change, but am fine if we don't change the behavior. |
|
I would like to add why I think having foreach (enchant_broker_list_dicts($broker) as $dict) {
// ...
}while right now, at least if you want to handle these special cases (I don't know if they actually happen in practice), you'd have to write something like this: $dicts = enchant_broker_list_dicts($broker);
if ($dicts) {
foreach ($dicts as $dict) {
// ...
}
}As we have the opportunity to change this now for PHP 8, I think we should take it. |
|
Anyone else have an opinion on this? @kocsismate @Girgias maybe. |
|
I can 100% relate to Christoph's reasoning. Not having |
|
Basing on the other work we did to remove false/null returns to more sensible defaults (emtpy strings, empty arrays, error) I would agree that breaking BC here seems pretty reasonable due to the various other cases doing the same. |
Followup to #5500, which makes sure all array returns are initialized, so the default "null" value does not get returned.
cc @cmb69 @remicollet