@Hypolite
This is caused in include/conversation.php line 724. I don't know why there is
a wrong Addon::callHooks call here, but we should fix it over there instead of
suppressing the error message in the addon when adding a correct type hint.
It's good actually, type hints are allowing another level of debug.
Signed-off-by: Roland Häder <roland@mxchange.org>
- added/removed empty line(s)
- curly braces after function/method definition should be in new line (PR/PSR-2)
- proper todo
Signed-off-by: Roland Häder <roland@mxchange.org>
- added new-line before curly brace in function/method definition - PR/PSR-2
- added some spaces
- added TODOs for next wave
Signed-off-by: Roland Häder <roland@mxchange.org>
MrPetovan@github:
| No, this is fetching all the users who set StatusNet mirroring. it starts
| from a pconfig value to get user IDs, which is the opposite of PConfig::get()
Signed-off-by: Roland Häder <roland@mxchange.org>
- used empty() instead of isset() - PR
- @TODO must be with 3 slashes if not in comment block for some IDEs being used
- added some empty lines
Signed-off-by: Roland Häder <roland@mxchange.org>
- Fatal error: Uncaught TypeError: Argument 2 passed to blockem_display_item()
must be of the type array, null given, called in /var/www/../htdocs/src/Core/Addon.php
on line 246 and defined in /var/www/../htdocs/addon/blockem/blockem.php on
line 142
Signed-off-by: Roland Häder <roland@mxchange.org>
- removed optional "null", was not in original code
- added spaces into SQL query
- added space
- added back & (call-by-reference)
- removed no longer used parameter
- added type-hint App
Signed-off-by: Roland Häder <roland@mxchange.org>
PHP Fatal error: Uncaught TypeError: Argument 2 passed to statusnet_cron() must
be of the type array, null given, called in /var/www/../src/Core/Addon.php on
line 246 and defined in /var/www/../addon/statusnet/statusnet.php:727
Signed-off-by: Roland Häder <roland@mxchange.org>
- SQL keywords must be all-uppercase (MrPetovan)
- used empty(), not isset() (annando)
- used more DBM::is_result()
Signed-off-by: Roland Häder <roland@mxchange.org>
- added array as type-hint
- don't forget & (call-by-reference) here as $b is maybe being modified in the
function
Signed-off-by: Roland Häder <roland@mxchange.org>
- added App (and imported it) as type-hint for $a
- also avoided & here as $a should not be modified within the function
- $b is 99.999% an array, let's add type-hint here
Signed-off-by: Roland Häder <roland@mxchange.org>