Initial code was written in PHP 7, but then we wanted to release in a more universal 5.x.
Well, PHP 7.0 has been released 3 December 2015, and we currently didn't aggressively pushed the notifications center.
Furthermore, the notifications center isn't a small piece of software you decide to install on a random hosting, but a part of a more complex architecture, to use with a broker, and probably consumers (write-only notifications not consumed by any software isn't valuable). That means we can more reasonably ask the service to call the requirements, not the other way.
Plan
- Document scalar parameters expected types
- Add return type declarations
- Use strict types, see https://wiki.php.net/rfc/scalar_type_hints_v5