User tests: Successful: Unsuccessful:
Since we are supporting PHP 7.2+ in Joomla 4, we should add typehinting for more robust code. This PR adds typehinting and cleans up some code for the com_actionlog component.
There are no new features, only code cleanup.
All actions are successful and recorded in the action logs
None as far as I am aware.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Front End Plugins |
Labels |
Added:
?
|
Since this PR is primarily typehinting existing APIs I will close it.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-09-03 17:23:19 |
Closed_By | ⇒ | roland-d |
While I realize that PHP 7.2 is a bit more forgiving with type covariance and contravariance, and that components have generally not fallen under Joomla's B/C policies, I'm just going to link to the original PHP 7 announcement where it was explicitly stated that pre-existing APIs weren't going to have their signatures changed unless the change added value or the change was in a scope that had minimal to no impact (i.e. a final class or private method).
I like strictly typed APIs, but typehinting existing APIs runs into B/C issues, and with a system like Joomla where it has relied on duck typing to a fault the types need to be reviewed very thoroughly for hidden gotcha's, which is why I took the "only typehint new things" approach myself.