mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
Update comments
This commit is contained in:
parent
91ac7ba018
commit
d7965a01b8
302 changed files with 56587 additions and 763 deletions
11
vendor/thecodingmachine/safe/deprecated/Exceptions/ApcException.php
vendored
Normal file
11
vendor/thecodingmachine/safe/deprecated/Exceptions/ApcException.php
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class ApcException extends \ErrorException implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
$error = error_get_last();
|
||||
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
|
||||
}
|
||||
}
|
11
vendor/thecodingmachine/safe/deprecated/Exceptions/LibeventException.php
vendored
Normal file
11
vendor/thecodingmachine/safe/deprecated/Exceptions/LibeventException.php
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class LibeventException extends \ErrorException implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
$error = error_get_last();
|
||||
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
|
||||
}
|
||||
}
|
11
vendor/thecodingmachine/safe/deprecated/Exceptions/MssqlException.php
vendored
Normal file
11
vendor/thecodingmachine/safe/deprecated/Exceptions/MssqlException.php
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class MssqlException extends \ErrorException implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
$error = error_get_last();
|
||||
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
|
||||
}
|
||||
}
|
11
vendor/thecodingmachine/safe/deprecated/Exceptions/MysqliException.php
vendored
Normal file
11
vendor/thecodingmachine/safe/deprecated/Exceptions/MysqliException.php
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class MysqliException extends \ErrorException implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
$error = error_get_last();
|
||||
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
|
||||
}
|
||||
}
|
15
vendor/thecodingmachine/safe/deprecated/Exceptions/PasswordException.php
vendored
Normal file
15
vendor/thecodingmachine/safe/deprecated/Exceptions/PasswordException.php
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
/**
|
||||
* @deprecated This exception is deprecated
|
||||
*/
|
||||
class PasswordException extends \ErrorException implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
$error = error_get_last();
|
||||
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
|
||||
}
|
||||
}
|
11
vendor/thecodingmachine/safe/deprecated/Exceptions/StatsException.php
vendored
Normal file
11
vendor/thecodingmachine/safe/deprecated/Exceptions/StatsException.php
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class StatsException extends \ErrorException implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
$error = error_get_last();
|
||||
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue