diff options
Diffstat (limited to 'maintenance/includes/TextPassDumper.php')
-rw-r--r-- | maintenance/includes/TextPassDumper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/includes/TextPassDumper.php b/maintenance/includes/TextPassDumper.php index 0b82b17944ee..2703116d3614 100644 --- a/maintenance/includes/TextPassDumper.php +++ b/maintenance/includes/TextPassDumper.php @@ -376,7 +376,7 @@ TEXT $this->timeExceeded = true; } - private function checkIfTimeExceeded() { + private function checkIfTimeExceeded(): bool { if ( $this->maxTimeAllowed && ( $this->lastTime - $this->timeOfCheckpoint > $this->maxTimeAllowed ) ) { @@ -1042,7 +1042,7 @@ TEXT } } - private function isValidTextId( $id ) { + private function isValidTextId( string $id ): bool { if ( preg_match( '/:/', $id ) ) { return $id !== 'tt:0'; } elseif ( preg_match( '/^\d+$/', $id ) ) { |