1<?php 2 3/** 4 * @see https://github.com/laminas/laminas-log for the canonical source repository 5 * @copyright https://github.com/laminas/laminas-log/blob/master/COPYRIGHT.md 6 * @license https://github.com/laminas/laminas-log/blob/master/LICENSE.md New BSD License 7 */ 8 9namespace Laminas\Log\Writer; 10 11/** 12 * Stub class for backwards compatibility. 13 * 14 * Since PHP 7 adds "null" as a reserved keyword, we can no longer have a class 15 * named that and retain PHP 7 compatibility. The original class has been 16 * renamed to "Noop", and this class is now an extension of it. It raises an 17 * E_USER_DEPRECATED to warn users to migrate. 18 * 19 * @deprecated 20 */ 21class Null extends Noop 22{ 23 public function __construct() 24 { 25 trigger_error( 26 sprintf( 27 'The class %s has been deprecated; please use %s\\Noop', 28 __CLASS__, 29 __NAMESPACE__ 30 ), 31 E_USER_DEPRECATED 32 ); 33 } 34} 35