77 Commits

Author SHA1 Message Date
Izuho Fujiwara 444d133e05 Fix Callable to lowercase
Co-authored-by: Markus Staab <maggus.staab@googlemail.com>
2021-08-06 18:54:30 +09:00
Izuho Fujiwara 198e7120b4 Fix Callable to lowercase 2021-08-06 16:05:00 +09:00
Izuho Fujiwara 59f635b597 Fix phpdoc of the function to be called 2021-08-06 15:48:54 +09:00
Izuho Fujiwara 3684f84feb Add types that appendHandler can take 2021-08-06 15:15:14 +09:00
Lode Claassen 051070dddb allow to customize the exit code send in cli context 2021-03-19 16:38:24 +01:00
El Amrani Chakir 624c4b8d12 Adding psalm-var tag
Co-authored-by: Markus Staab <maggus.staab@googlemail.com>
2020-11-01 12:00:00 +00:00
AmraniCh 48d5d8b564 [Whoops\Run] Improve PHPdocs 2020-11-01 12:00:00 +00:00
Denis Sokolov 48810fbdb5 removeFirstHandler and removeLastHandler 2019-12-29 12:00:00 +02:00
Denis Sokolov f2eb7d6d42 appendHandler and prependHandler 2019-12-25 12:00:00 +02:00
Denis Sokolov 8957f6fb70 Revert "feat!: add append and prepend handler instead of reverse execution"
This reverts commit f41c4a2a5a.
2019-12-25 12:00:00 +02:00
Denis Sokolov b909d8899e Revert "style: rename handlerStack to handlerQueue"
This reverts commit 5fa7623246.
2019-12-25 12:00:00 +02:00
Jeroen Derks f9773aa988 updated function handleException() moved assignments outside of try/catch (#3) 2019-07-02 08:31:37 +02:00
Markus Staab 38ad9c4656 Make sure we close all output-buffer we started beforehand 2019-06-24 15:51:07 +02:00
Thomas Flori 5fa7623246 style: rename handlerStack to handlerQueue 2019-06-22 23:23:05 +02:00
Thomas Flori f41c4a2a5a feat!: add append and prepend handler instead of reverse execution
BREAKING CHANGE: since "pushHandler()" was actually prepending handlers
it is now an alias for prependHandler but "popHandler()" is still
removing the last handler.
2019-06-22 08:59:57 +02:00
Nekrasov Ilya 98a1b45cce Do not ext(1) from shutdown handler 2018-03-27 00:07:42 +03:00
Graham Campbell 5e87625387 Deal with header sending correctly 2016-12-25 18:59:26 +00:00
Denis Sokolov e54d5af7b4 Note about silencing errors 2016-10-11 15:40:23 +03:00
Ivan Scherbak 89168f7b76 Add silencedPatterns getter 2016-09-20 10:56:02 +03:00
Andreas Möller c37aae68fe Fix: Use short array syntax 2016-07-24 19:36:49 +02:00
Théo FIDRY 7054419685 Add RunInterface
Closes #390.
2016-03-12 13:29:53 +00:00
Guido Contreras Woda 30b6a3b264 Use a system facade to allow consumers of Whoops\Run to mock any system call that it would do through native functions. 2016-01-22 15:00:37 -03:00
Denis Sokolov 5f777804ff Merge pull request #330 from filp/final-run
Forbid extending Run

BC
2015-12-13 01:10:20 +02:00
Denis Sokolov 753557c09f Merge branch 'php7'
BC: typehint

Conflicts:
	src/Whoops/Exception/Inspector.php
2015-12-12 22:41:12 +02:00
Mark Amery 2845f001e3 Fix a typo in an exception message 2015-11-22 21:05:54 +00:00
Denis Sokolov 21a0a0513e Forbid extending Run 2015-11-22 20:53:06 +02:00
Adam Vercimak bdaf88555e - move isLevelFatal method to public method to utility class to be utilized by other classes
- add some basic documentation to isLevelFatal method
2015-08-11 23:01:50 -05:00
John S Long 14818029f7 Remove exception from imports, correct Throwable doc typehints 2015-07-14 08:11:32 -05:00
John S Long 7ec3444b79 Change Exception to Throwable in documentation 2015-06-14 18:23:43 -05:00
John S Long e47c104d21 Rough changes to get PHP7 working. 2015-05-20 13:40:12 -05:00
Colin Kiegel 845c881347 HHVM fix - flush before exit
See https://github.com/facebook/hhvm/issues/4055.
2015-03-30 12:40:57 +02:00
Markus Staab 6a82df42df error-code should be wrapped in ErrorException->severity. fixes #267. 2015-03-13 10:41:22 +01:00
Matias Griese fa66cb6c00 Fix #262: Silenced errors won't fill error_get_last() array 2015-02-17 14:42:26 +02:00
Denis Sokolov 9e1ffa25c3 Run: clarify passing exception to handle() 2015-01-15 13:37:30 +02:00
Denis Sokolov 7a87266885 Run: clarify sendHttpCode type 2015-01-15 13:26:50 +02:00
Graham Campbell 0346c26963 CS fixes 2014-09-27 11:05:51 +01:00
Adrian Budau 9456d5ca61 Fixed pull request 231 bitmask operators 2014-09-27 12:42:16 +03:00
Adrian Budau de44287113 Changed the way isLevelFatal is made. Now using bitwise AND instead of
checking the presence in a predefined array.
2014-09-26 22:15:19 +03:00
Marek Augustyn 0b3916876b exit(1) instead of exit() terminating the script after handling an exception 2014-03-19 15:57:46 +01:00
Denis Sokolov 5ffac20ad2 Run: refactor the reverse loop slightly 2014-02-25 11:45:56 +01:00
Denis Sokolov 73c1e181aa Run: refactor quit logic slightly 2014-02-24 19:08:40 +01:00
Denis Sokolov 4e48f6b95c Run: refactor outputting slightly 2014-02-24 19:06:27 +01:00
Graham Campbell ba509724e6 Minor fixes 2014-02-20 14:00:20 +00:00
Denis Sokolov d46c3782c0 Refactor out the canSendHeaders check 2014-02-16 14:12:39 +01:00
Denis Sokolov 91e3fd4b08 Minor comment to explain the shutdown handler 2013-12-04 15:19:30 +01:00
Denis Sokolov 63b136a2c4 Fix #112: pass exception handling on fatal errors properly 2013-11-14 21:07:07 +01:00
Denis Sokolov ab1b5b8848 Run: isLevelFatal helper 2013-11-14 21:06:05 +01:00
Karl Merkli a7b9a3157e Updated PHPDoc of Run#pushHandler
Updated the PHPDoc of Run#pushHandler so IDE's won't give an error if callable is used.
2013-11-12 14:23:01 +01:00
Denis Sokolov 966d2ed1c6 Merge branch 'feature/error-control-operator-support' 2013-11-06 17:07:26 +01:00
Denis Sokolov ed0674f942 Remove an exception for strict errors in Run.php
There is no indication why that special handling is necessary,
as it should be picked up by the regular error handling,
as every other type of error in the current file.
2013-11-06 17:06:55 +01:00