Skip to content

Commit

Permalink
regenerate files
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoulquie-tnw committed Mar 30, 2022
1 parent 7c119d5 commit 6dd7c22
Show file tree
Hide file tree
Showing 153 changed files with 14,993 additions and 2,414 deletions.
3 changes: 1 addition & 2 deletions deprecated/Exceptions/ApcException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

class ApcException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
public static function createFromPhpError(array $error = []): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/ApacheException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class ApacheException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{ApacheException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/ApcuException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class ApcuException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{ApcuException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/ArrayException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class ArrayException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{ArrayException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/Bzip2Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class Bzip2Exception extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{Bzip2Exception}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/CalendarException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class CalendarException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{CalendarException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/ClassobjException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class ClassobjException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{ClassobjException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/ComException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class ComException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{ComException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/CubridException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class CubridException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{CubridException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/DatetimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class DatetimeException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{DatetimeException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/DirException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class DirException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{DirException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/EioException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class EioException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{EioException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/ErrorfuncException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class ErrorfuncException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{ErrorfuncException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/ExecException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class ExecException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{ExecException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/FileinfoException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class FileinfoException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{FileinfoException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/FilesystemException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class FilesystemException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{FilesystemException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
16 changes: 13 additions & 3 deletions generated/Exceptions/FilterException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

class FilterException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
/**
*
* @param array{type?: int, message?: string, file?: string, line?: int} $error
* @return \Safe\Exceptions\{FilterException}
*/
public static function createFromPhpError(array $error = null): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self(
$error['message'] ?? 'An error occured',
0,
$error['type'] ?? 1,
$error['file'] ?? __FILE__,
$error['line'] ?? __LINE__,
);
}
}
Loading

0 comments on commit 6dd7c22

Please sign in to comment.