Add types to function parameters

Created on 25 January 2022, almost 3 years ago
Updated 17 November 2023, about 1 year ago

Problem/Motivation

This module is mostly missing types for parameters in function declarations. Recent issues have change function parameters on SubscriberInterface and SubscriptionManagerInterface, so let's start by adding types there to help people realise to change their code.

This will also catch some places inside the module that don't follow the interface properly. For example, the second argument to Subscriber::loadByMail and Subscriber::loadByUid is frequently passed as 'create' not TRUE. But the interface specifies this should be a boolean. It doesn't make any difference to the result (as the implementation currently stands), but could cause unexpected bugs if the implementation is changed.

📌 Task
Status

Fixed

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom jonathanshaw Stroud, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024