[phpMyAdmin Git] [phpmyadmin/sql-parser] 9be187: Change error handling to returning a boolean value

Anthony Njoroge mainaanthonynjoroge at gmail.com
Fri Sep 9 20:59:06 CEST 2022


Branch: refs/heads/6.0.x
Home: https://github.com/phpmyadmin/sql-parser
Commit: 9be1871329c773c3e06d49865041168bdfb402b7
https://github.com/phpmyadmin/sql-parser/commit/9be1871329c773c3e06d49865041168bdfb402b7
Author: Anthony Njoroge <mainaanthonynjoroge at gmail.com>
Date: 2022-08-08 (Mon, 08 August 2022) +02:00

Changed paths: 
M src/Context.php
D src/Exceptions/LoaderException.php

Log Message:
-----------
Change error handling to returning a boolean value

In case an error occurs during loading of a context, let the Context::load()
method return a boolean value indicating whether the context was successfully
loaded or not.
Throwing an Exception causes a false positive in debuggers,since the Context::load()
method does the correct thing anyway

Commit: d3c0ccda489034631d95f8e6485985f29b801d06
https://github.com/phpmyadmin/sql-parser/commit/d3c0ccda489034631d95f8e6485985f29b801d06
Author: William Desportes <williamdes at wdes.fr>
Date: 2022-08-08 (Mon, 08 August 2022) +02:00

Changed paths: 
M CHANGELOG.md

Log Message:
-----------
Add a CHANGELOG entry for #384

Pull-request: #384

Signed-off-by: William Desportes <williamdes at wdes.fr>

Commit: 233788b0b8f987c616ae09dd522ed1fbd1c3824d
https://github.com/phpmyadmin/sql-parser/commit/233788b0b8f987c616ae09dd522ed1fbd1c3824d
Author: William Desportes <williamdes at wdes.fr>
Date: 2022-08-08 (Mon, 08 August 2022) +02:00

Changed paths: 
M tests/Lexer/ContextTest.php

Log Message:
-----------
Ref #384 - fix ContextTest::testLoadError

Pull-request: #384

Signed-off-by: William Desportes <williamdes at wdes.fr>

Commit: feb6a86fdabfb84df48058ba8a49659d32cbde93
https://github.com/phpmyadmin/sql-parser/commit/feb6a86fdabfb84df48058ba8a49659d32cbde93
Author: William Desportes <williamdes at wdes.fr>
Date: 2022-09-09 (Fri, 09 September 2022) +02:00

Changed paths: 
M CHANGELOG.md
M src/Context.php
M tests/Lexer/ContextTest.php
D src/Exceptions/LoaderException.php

Log Message:
-----------
Merge #384 - Change error handling from throwing an exception to returning a boolean

Pull-request: #384

Signed-off-by: William Desportes <williamdes at wdes.fr>



More information about the Git mailing list