Skip to content

Commit 4b8a50e

Browse files
committed
refactor: use CodeIgniter\Exceptions\LogicException
1 parent 049fb2b commit 4b8a50e

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

system/CodeIgniter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use CodeIgniter\Debug\Timer;
1717
use CodeIgniter\Events\Events;
1818
use CodeIgniter\Exceptions\FrameworkException;
19+
use CodeIgniter\Exceptions\LogicException;
1920
use CodeIgniter\Exceptions\PageNotFoundException;
2021
use CodeIgniter\Filters\Filters;
2122
use CodeIgniter\HTTP\CLIRequest;
@@ -41,7 +42,6 @@
4142
use Kint\Renderer\CliRenderer;
4243
use Kint\Renderer\RichRenderer;
4344
use Locale;
44-
use LogicException;
4545
use Throwable;
4646

4747
/**

system/Cookie/Cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
use ArrayAccess;
1717
use CodeIgniter\Cookie\Exceptions\CookieException;
1818
use CodeIgniter\Exceptions\InvalidArgumentException;
19+
use CodeIgniter\Exceptions\LogicException;
1920
use CodeIgniter\I18n\Time;
2021
use Config\Cookie as CookieConfig;
2122
use DateTimeInterface;
22-
use LogicException;
2323
use ReturnTypeWillChange;
2424

2525
/**

system/Database/MySQLi/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use CodeIgniter\Database\BaseConnection;
1717
use CodeIgniter\Database\Exceptions\DatabaseException;
18-
use LogicException;
18+
use CodeIgniter\Exceptions\LogicException;
1919
use mysqli;
2020
use mysqli_result;
2121
use mysqli_sql_exception;

system/HTTP/Exceptions/RedirectException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
use CodeIgniter\Exceptions\HTTPExceptionInterface;
1717
use CodeIgniter\Exceptions\InvalidArgumentException;
18+
use CodeIgniter\Exceptions\LogicException;
1819
use CodeIgniter\Exceptions\RuntimeException;
1920
use CodeIgniter\HTTP\ResponsableInterface;
2021
use CodeIgniter\HTTP\ResponseInterface;
21-
use LogicException;
2222
use Throwable;
2323

2424
/**

system/Security/Security.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
use CodeIgniter\Cookie\Cookie;
1717
use CodeIgniter\Exceptions\InvalidArgumentException;
18+
use CodeIgniter\Exceptions\LogicException;
1819
use CodeIgniter\HTTP\IncomingRequest;
1920
use CodeIgniter\HTTP\Method;
2021
use CodeIgniter\HTTP\Request;
@@ -25,7 +26,6 @@
2526
use Config\Cookie as CookieConfig;
2627
use Config\Security as SecurityConfig;
2728
use ErrorException;
28-
use LogicException;
2929

3030
/**
3131
* Class Security

system/Test/ConfigFromArrayTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace CodeIgniter\Test;
1515

16-
use LogicException;
16+
use CodeIgniter\Exceptions\LogicException;
1717

1818
trait ConfigFromArrayTrait
1919
{

system/Test/Mock/MockInputOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
use CodeIgniter\CLI\InputOutput;
1717
use CodeIgniter\Exceptions\InvalidArgumentException;
18+
use CodeIgniter\Exceptions\LogicException;
1819
use CodeIgniter\Test\Filters\CITestStreamFilter;
1920
use CodeIgniter\Test\PhpStreamWrapper;
20-
use LogicException;
2121

2222
final class MockInputOutput extends InputOutput
2323
{

system/Validation/Validation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Closure;
1717
use CodeIgniter\Database\BaseConnection;
1818
use CodeIgniter\Exceptions\InvalidArgumentException;
19+
use CodeIgniter\Exceptions\LogicException;
1920
use CodeIgniter\HTTP\Exceptions\HTTPException;
2021
use CodeIgniter\HTTP\IncomingRequest;
2122
use CodeIgniter\HTTP\Method;
@@ -24,7 +25,6 @@
2425
use CodeIgniter\View\RendererInterface;
2526
use Config\Services;
2627
use Config\Validation as ValidationConfig;
27-
use LogicException;
2828
use TypeError;
2929

3030
/**

system/View/Cells/Cell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
namespace CodeIgniter\View\Cells;
1515

16+
use CodeIgniter\Exceptions\LogicException;
1617
use CodeIgniter\Traits\PropertiesTrait;
17-
use LogicException;
1818
use ReflectionClass;
1919
use Stringable;
2020

0 commit comments

Comments
 (0)