mediawiki-extensions-AbuseF.../includes/parser/AFPParserState.php
Daimona Eaytoy badde6ba75 Revert "Revert "Add typehinting for every object-only parameter""
This reverts commit 1ed75b4ae0.
Fixed the one which caused errors, by making articleFromTitle
only use WikiPage, instead of silently mixing WikiPage and Article.

Note for reviewers: this patch is identical to the one which was
previously +2ed, which was mostly correct. To see the actual change,
diff AFComputedVariable with 1..current.

Change-Id: I6747eaed861af6c40a3b1610aebcc1174296e9ed
2018-11-15 10:09:16 +01:00

15 lines
217 B
PHP

<?php
class AFPParserState {
public $pos, $token;
/**
* @param AFPToken $token
* @param int $pos
*/
public function __construct( AFPToken $token, $pos ) {
$this->token = $token;
$this->pos = $pos;
}
}