Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
+5
-5
@@ -39,7 +39,7 @@ final class Warning
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public static function setWarningHandler(?callable $warningHandler = null)
|
||||
public static function setWarningHandler(?callable $warningHandler = null) : void
|
||||
{
|
||||
self::$warningHandler = $warningHandler;
|
||||
}
|
||||
@@ -56,7 +56,7 @@ final class Warning
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public static function suppress($suppress = true)
|
||||
public static function suppress($suppress = true) : void
|
||||
{
|
||||
if ($suppress === true) {
|
||||
self::$enableWarnings = 0;
|
||||
@@ -81,7 +81,7 @@ final class Warning
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public static function enable($enable = true)
|
||||
public static function enable($enable = true) : void
|
||||
{
|
||||
if ($enable === true) {
|
||||
self::$enableWarnings = self::ALL;
|
||||
@@ -94,7 +94,7 @@ final class Warning
|
||||
}
|
||||
}
|
||||
|
||||
public static function warnOnce(string $errorMessage, int $warningId, ?int $messageLevel = null)
|
||||
public static function warnOnce(string $errorMessage, int $warningId, ?int $messageLevel = null) : void
|
||||
{
|
||||
$messageLevel = $messageLevel ?? E_USER_WARNING;
|
||||
|
||||
@@ -107,7 +107,7 @@ final class Warning
|
||||
}
|
||||
}
|
||||
|
||||
public static function warn(string $errorMessage, int $warningId, ?int $messageLevel = null)
|
||||
public static function warn(string $errorMessage, int $warningId, ?int $messageLevel = null) : void
|
||||
{
|
||||
$messageLevel = $messageLevel ?? E_USER_WARNING;
|
||||
|
||||
|
||||
Reference in new issue
Block a user