Skip to content

Commit 6c2ad07

Browse files
committed
Regenerate files
1 parent 16883cd commit 6c2ad07

File tree

153 files changed

+15006
-2411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+15006
-2411
lines changed

deprecated/Exceptions/ApcException.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
class ApcException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
public static function createFromPhpError(array $error = []): self
77
{
8-
$error = error_get_last();
98
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
109
}
1110
}

generated/Exceptions/ApacheException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class ApacheException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{ApacheException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/ApcuException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class ApcuException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{ApcuException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/ArrayException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class ArrayException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{ArrayException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/Bzip2Exception.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class Bzip2Exception extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{Bzip2Exception}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/CalendarException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class CalendarException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{CalendarException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/ClassobjException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class ClassobjException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{ClassobjException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/ComException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class ComException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{ComException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/CubridException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class CubridException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{CubridException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/DatetimeException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class DatetimeException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{DatetimeException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/DirException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class DirException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{DirException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/EioException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class EioException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{EioException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/ErrorfuncException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class ErrorfuncException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{ErrorfuncException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/ExecException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class ExecException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{ExecException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/FileinfoException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class FileinfoException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{FileinfoException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/FilesystemException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class FilesystemException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{FilesystemException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

generated/Exceptions/FilterException.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33

44
class FilterException extends \ErrorException implements SafeExceptionInterface
55
{
6-
public static function createFromPhpError(): self
6+
/**
7+
*
8+
* @param array{type?: int, message?: string, file?: string, line?: int} $error
9+
* @return \Safe\Exceptions\{FilterException}
10+
*/
11+
public static function createFromPhpError(array $error = null): self
712
{
8-
$error = error_get_last();
9-
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
13+
return new self(
14+
$error['message'] ?? 'An error occured',
15+
0,
16+
$error['type'] ?? 1,
17+
$error['file'] ?? __FILE__,
18+
$error['line'] ?? __LINE__,
19+
);
1020
}
1121
}

0 commit comments

Comments
 (0)