Skip to content

Commit

Permalink
Merge pull request #416 from spawnia/occurred
Browse files Browse the repository at this point in the history
Change misspelled occured to occurred
  • Loading branch information
Kharhamel authored Apr 13, 2023
2 parents 3115ecd + 2d6028d commit 3a6e43b
Show file tree
Hide file tree
Showing 82 changed files with 87 additions and 87 deletions.
2 changes: 1 addition & 1 deletion deprecated/Exceptions/ApcException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion deprecated/Exceptions/LibeventException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class LibeventException extends \ErrorException implements SafeExceptionInterfac
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion deprecated/Exceptions/MssqlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion deprecated/Exceptions/MysqliException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion deprecated/Exceptions/PasswordException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ class PasswordException extends \ErrorException implements SafeExceptionInterfac
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion deprecated/Exceptions/StatsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/ApacheException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class ApacheException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/ApcuException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class ApcuException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/ArrayException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class ArrayException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/Bzip2Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class Bzip2Exception 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/CalendarException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class CalendarException extends \ErrorException implements SafeExceptionInterfac
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/ClassobjException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class ClassobjException extends \ErrorException implements SafeExceptionInterfac
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/ComException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class ComException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/CubridException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class CubridException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/DatetimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class DatetimeException extends \ErrorException implements SafeExceptionInterfac
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/DirException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class DirException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/EioException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class EioException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/ErrorfuncException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class ErrorfuncException extends \ErrorException implements SafeExceptionInterfa
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/ExecException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class ExecException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/FileinfoException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class FileinfoException extends \ErrorException implements SafeExceptionInterfac
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/FilesystemException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class FilesystemException extends \ErrorException implements SafeExceptionInterf
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/FilterException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class FilterException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/FpmException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class FpmException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/FtpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class FtpException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/FunchandException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class FunchandException extends \ErrorException implements SafeExceptionInterfac
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/GettextException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class GettextException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/GmpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class GmpException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/GnupgException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class GnupgException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/HashException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class HashException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/IbaseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class IbaseException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/IbmDb2Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class IbmDb2Exception 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/IconvException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class IconvException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/ImageException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class ImageException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/ImapException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class ImapException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/InfoException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class InfoException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/InotifyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class InotifyException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/LdapException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class LdapException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/LibxmlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class LibxmlException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/LzfException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class LzfException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/MailparseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class MailparseException extends \ErrorException implements SafeExceptionInterfa
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/MbstringException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class MbstringException extends \ErrorException implements SafeExceptionInterfac
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/MiscException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class MiscException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/MysqlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class MysqlException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/NetworkException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class NetworkException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/Oci8Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class Oci8Exception 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/OpcacheException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class OpcacheException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/OutcontrolException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class OutcontrolException extends \ErrorException implements SafeExceptionInterf
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/PcntlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class PcntlException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/PgsqlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class PgsqlException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
2 changes: 1 addition & 1 deletion generated/Exceptions/PosixException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class PosixException 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);
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}
Loading

0 comments on commit 3a6e43b

Please sign in to comment.