to be prevented. Modifying the $purgeBlobs parameter now has no effect.
* SVGMetadataExtractor::getMetadata has been deprecated. Instead, you should
use SVGReader->getMetadata() directly.
+* The following public properties on AbstractBlock are deprecated: $mReason,
+ $mTimestamp, $mExpiry, $mHideName. Use the getters/setters instead.
+* The following public properties on DatabaseBlock are deprecated: $mAuto,
+ $mParentBlockId. To check for an autoblock use DatabaseBlock::getType; to
+ check for the parent ID, use DatabaseBlock::getParentBlockId.
=== Other changes in 1.34 ===
* …
* @since 1.34 Factored out from DatabaseBlock (previously Block).
*/
abstract class AbstractBlock {
- /** @var string */
+ /**
+ * @deprecated since 1.34. Use getReason and setReason instead.
+ * @var string
+ */
public $mReason;
- /** @var string */
+ /**
+ * @deprecated since 1.34. Use getTimestamp and setTimestamp instead.
+ * @var string
+ */
public $mTimestamp;
- /** @var string */
+ /**
+ * @deprecated since 1.34. Use getExpiry and setExpiry instead.
+ * @var string
+ */
public $mExpiry = '';
/** @var bool */
/** @var bool */
protected $blockCreateAccount = false;
- /** @var bool */
+ /**
+ * @deprecated since 1.34. Use getHideName and setHideName instead.
+ * @var bool
+ */
public $mHideName = false;
/** @var User|string */
* @since 1.34 Renamed from Block.
*/
class DatabaseBlock extends AbstractBlock {
- /** @var bool */
+ /**
+ * @deprecated since 1.34. Use getType to check whether a block is autoblocking.
+ * @var bool
+ */
public $mAuto;
- /** @var int */
+ /**
+ * @deprecated since 1.34. Use getParentBlockId instead.
+ * @var int
+ */
public $mParentBlockId;
/** @var int */
'auto' => true,
'expiry' => 0
] );
- $this->user->mBlock->mTimestamp = 0;
+ $this->user->mBlock->setTimestamp( 0 );
$this->assertEquals( [ [ 'autoblockedtext',
"[[User:Useruser|\u{202A}Useruser\u{202C}]]", 'no reason given', '127.0.0.1',
"\u{202A}Useruser\u{202C}", null, 'infinite', '127.0.8.1',