Subversion Repositories php-qbpwcf

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 liveuser 1
<?php
2
 
3
namespace Guzzle\Common;
4
 
5
/**
6
 * Guzzle version information
7
 */
8
class Version
9
{
10
    const VERSION = '3.9.2';
11
 
12
    /**
13
     * @var bool Set this value to true to enable warnings for deprecated functionality use. This should be on in your
14
     *           unit tests, but probably not in production.
15
     */
16
    public static $emitWarnings = false;
17
 
18
    /**
19
     * Emit a deprecation warning
20
     *
21
     * @param string $message Warning message
22
     */
23
    public static function warn($message)
24
    {
25
        if (self::$emitWarnings) {
26
            trigger_error('Deprecation warning: ' . $message, E_USER_DEPRECATED);
27
        }
28
    }
29
}