You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix for array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /htdocs/Ip/Internal/Translations/JsonLoader.php:48
#903
Open
HeinOpal opened this issue
Jul 18, 2022
· 0 comments
->> if (array_key_exists('', $textDomain)) {
if (isset($textDomain['']['plural_forms'])) {
$textDomain->setPluralRule(
PluralRule::fromString($textDomain['']['plural_forms'])
);
}
$textDomain = new TextDomain($messages);
--> if (isset($textDomain[''])) {
if (isset($textDomain['']['plural_forms'])) {
$textDomain->setPluralRule(
PluralRule::fromString($textDomain['']['plural_forms'])
);
}
The text was updated successfully, but these errors were encountered:
Thank you @unyfolk for this fix
->> if (array_key_exists('', $textDomain)) {
if (isset($textDomain['']['plural_forms'])) {
$textDomain->setPluralRule(
PluralRule::fromString($textDomain['']['plural_forms'])
);
}
$textDomain = new TextDomain($messages);
--> if (isset($textDomain[''])) {
if (isset($textDomain['']['plural_forms'])) {
$textDomain->setPluralRule(
PluralRule::fromString($textDomain['']['plural_forms'])
);
}
The text was updated successfully, but these errors were encountered: