Add missing strict "array" type hints to DiscussionParser

This patch adds a few strict type hints on the language level, not
only on the PHPDoc level as my other patches do.

Change-Id: Ie66f9ebf80317dcaf13e2e96a93332a1a93cebbe
This commit is contained in:
Thiemo Kreuz 2018-08-13 09:30:23 +02:00 committed by Umherirrender
parent 15b15adcb3
commit e5546e50b6

View file

@ -639,7 +639,7 @@ abstract class EchoDiscussionParser {
* @param array $actions
* @return array converted actions
*/
static function convertToUnknownSignedChanges( $signedSections, $actions ) {
static function convertToUnknownSignedChanges( array $signedSections, array $actions ) {
return array_map( function ( $action ) use( $signedSections ) {
if (
$action['type'] === 'unknown-change' &&
@ -657,7 +657,7 @@ abstract class EchoDiscussionParser {
}, $actions );
}
static function isInSignedSection( $line, $signedSections ) {
static function isInSignedSection( $line, array $signedSections ) {
foreach ( $signedSections as $section ) {
if ( $line > $section[0] && $line <= $section[1] ) {
return true;