at-ease is a PHP library that provides a safe alternative to PHP's
@ error control operator.
See the "Error handling" section on the PHP coding conventions page on why we don't use
The code was originally introduced to MediaWiki in r4261, and then split out into a separate library during the MediaWiki 1.26 development cycle.
Usage[edit | hide all | hide | edit source]
\Wikimedia\AtEase\AtEase::suppressWarnings(); file_get_contents( $path ); \Wikimedia\AtEase\AtEase::restoreWarnings();