Fix ParserOutput::getText 'unwrap' flag for end-of-doc comment
[lhc/web/wiklou.git] / includes / compat / Timestamp.php
1 <?php
2 // This file is loaded by composer.json#autoload.files instead of autoload.php,
3 // because PHP's class loader does not support autoloading an alias for a class that
4 // isn't already loaded. See also AutoLoaderTest and ClassCollector.
5
6 // By using an autoload file, this will trigger directly at runtime outside any class
7 // loading context. This file will then register the alias and, as class_alias() does
8 // by default, it will trigger a plain autoload for the destination class.
9
10 // The below uses string concatenation for the alias to avoid being seen by ClassCollector,
11 // which would insist on adding it to autoload.php, after which AutoLoaderTest will
12 // complain about class_alias() not being in the target class file.
13
14 /**
15 * @deprecated since 1.29
16 * @since 1.20
17 */
18 class_alias( Wikimedia\Timestamp\TimestampException::class, 'Timestamp' . 'Exception' );