Start using the Assert helper class for checking parameters.
authordaniel <daniel.kinzler@wikimedia.de>
Wed, 22 Apr 2015 16:46:29 +0000 (18:46 +0200)
committerReedy <reedy@wikimedia.org>
Mon, 11 May 2015 17:54:07 +0000 (17:54 +0000)
commit70812282142b19d8154861a2014a727cfc14720a
tree84f25594ea8acf216079ef37ecd0b3ce0b4bbce0
parent1f954a10cddc2fdd17d2c08fec78637befd0702c
Start using the Assert helper class for checking parameters.

This introduces https://github.com/wmde/Assert as a dependency,
as discussed in the RFC T91071.

This change uses assertions to check some parameters in some places,
to showcase the main intended use case for assertions in MediaWiki.

Bug: T91071
Change-Id: I93ac39b7c146f10532e37b51d973b59b9c424b2f
composer.json
includes/libs/MapCacheLRU.php
includes/libs/ProcessCacheLRU.php
includes/title/TitleValue.php
includes/utils/UIDGenerator.php
tests/phpunit/includes/libs/ProcessCacheLRUTest.php