if ($bootstrapReady) {
// just got ready: determine whether there is a working custom translation function
$config = CRM_Core_Config::singleton();
- if (isset($config->customTranslateFunction) and function_exists($config->customTranslateFunction)) {
+ if (!empty($config->customTranslateFunction) && function_exists($config->customTranslateFunction)) {
$function = $config->customTranslateFunction;
}
}
*
* @return bool
*/
- public function offsetExists($offset) {
+ public function offsetExists($offset): bool {
return isset($this->params[$offset]);
}
* @see param()
* @see ArrayAccess::offsetGet
*/
+ #[ReturnTypeWillChange]
public function offsetGet($offset) {
return $this->params[$offset];
}
* @see param()
* @see ArrayAccess::offsetSet
*/
- public function offsetSet($offset, $value) {
+ public function offsetSet($offset, $value): void {
$this->param($offset, $value);
}
* @see param()
* @see ArrayAccess::offsetUnset
*/
- public function offsetUnset($offset) {
+ public function offsetUnset($offset): void {
unset($this->params[$offset]);
}