summaryrefslogtreecommitdiffstats
path: root/src/Exceptions
diff options
context:
space:
mode:
Diffstat (limited to 'src/Exceptions')
-rw-r--r--src/Exceptions/LexerException.php12
-rw-r--r--src/Exceptions/LoaderException.php12
-rw-r--r--src/Exceptions/ParserException.php11
3 files changed, 11 insertions, 24 deletions
diff --git a/src/Exceptions/LexerException.php b/src/Exceptions/LexerException.php
index 61e88c9..9731575 100644
--- a/src/Exceptions/LexerException.php
+++ b/src/Exceptions/LexerException.php
@@ -1,19 +1,17 @@
<?php
-
/**
* Exception thrown by the lexer.
*/
+declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Exceptions;
+use Exception;
+
/**
* Exception thrown by the lexer.
- *
- * @category Exceptions
- *
- * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
*/
-class LexerException extends \Exception
+class LexerException extends Exception
{
/**
* The character that produced this error.
@@ -30,8 +28,6 @@ class LexerException extends \Exception
public $pos;
/**
- * Constructor.
- *
* @param string $msg the message of this exception
* @param string $ch the character that produced this exception
* @param int $pos the position of the character
diff --git a/src/Exceptions/LoaderException.php b/src/Exceptions/LoaderException.php
index bfbd4c3..54b9234 100644
--- a/src/Exceptions/LoaderException.php
+++ b/src/Exceptions/LoaderException.php
@@ -1,19 +1,17 @@
<?php
-
/**
* Exception thrown by the lexer.
*/
+declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Exceptions;
+use Exception;
+
/**
* Exception thrown by the lexer.
- *
- * @category Exceptions
- *
- * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
*/
-class LoaderException extends \Exception
+class LoaderException extends Exception
{
/**
* The failed load name.
@@ -23,8 +21,6 @@ class LoaderException extends \Exception
public $name;
/**
- * Constructor.
- *
* @param string $msg the message of this exception
* @param string $name the character that produced this exception
* @param int $code the code of this error
diff --git a/src/Exceptions/ParserException.php b/src/Exceptions/ParserException.php
index eb13653..ae63f07 100644
--- a/src/Exceptions/ParserException.php
+++ b/src/Exceptions/ParserException.php
@@ -1,21 +1,18 @@
<?php
-
/**
* Exception thrown by the parser.
*/
+declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Exceptions;
+use Exception;
use PhpMyAdmin\SqlParser\Token;
/**
* Exception thrown by the parser.
- *
- * @category Exceptions
- *
- * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
*/
-class ParserException extends \Exception
+class ParserException extends Exception
{
/**
* The token that produced this error.
@@ -25,8 +22,6 @@ class ParserException extends \Exception
public $token;
/**
- * Constructor.
- *
* @param string $msg the message of this exception
* @param Token $token the token that produced this exception
* @param int $code the code of this error