Commit Graph

42 Commits

Author SHA1 Message Date
Igor Scheller 8438b8dc51 Legacy logger: be less noisy on cli (no double logging and oneliners) 2023-10-15 18:10:12 +02:00
Thomas Rupprecht d4104850be
phpstan fixes (partial level 3) (#1091) 2023-04-01 14:39:25 +02:00
Bot f9d22f9bda Set strict types everywhere (except includes) 2023-02-03 20:55:58 +01:00
Igor Scheller f5a7598a45 tests: Removed exception handler registration because it has side effects 2023-01-24 20:49:31 +01:00
Thomas Rupprecht e844c98871
Convert class const's to enum's (#1050)
* convert `Migrate::(UP|DOWN)` class const to `MigrateDirection` enum
* convert `Handler::(ENV_PRODUCTION|ENV_DEVELOPMENT)` class const to `Environment` enum
* convert `ShiftSignupState::(FREE|...|NOT_ARRIVED)` class const to `ShiftSignupStatus::(FREE|...|NOT_ARRIVED)` enum
2023-01-24 19:23:57 +01:00
Michael Weimann 59cfce0c76
Enable space after cast sniff and remove .git-blame-ignore-revs 2022-12-25 11:59:45 +01:00
Igor Scheller b024650eaf Fix formatting 2022-12-22 00:35:07 +01:00
Thomas Rupprecht 3d88ae7916
convert `switch` to `match` 2022-12-22 00:08:54 +01:00
Michael Weimann 2ad4203dd3
Add useless comment phpcs sniff 2022-12-20 22:19:49 +01:00
Michael Weimann 61139e03c3
Use constructor property promotion
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
2022-12-20 22:18:34 +01:00
Michael Weimann b004f865b4
Set native property types
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
2022-12-15 20:13:50 +01:00
Michael Weimann aff8826c99
Set native return types
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
2022-12-15 20:13:31 +01:00
Michael Weimann 2b88322c0c
Set native parameter types
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
2022-12-15 20:13:30 +01:00
Michael Weimann 9396a49412 Add phpstan 2022-12-08 16:32:04 +01:00
Igor Scheller 4b77290134 CI: Fix k8s deployment when commit message contains a # or \, add more app dirs to whoops handler 2022-04-18 14:32:36 +02:00
Igor Scheller ef665c80ba ExceptionHandling: Show formatted stack trace on CLI 2021-04-12 17:13:48 +02:00
Igor Scheller 2be3e17db7 Exceptions: Log previous exception 2020-10-18 16:58:36 +02:00
Igor Scheller 21ee2bd0d7 Exception handling: Added NullHandler to be used in commands 2020-06-14 13:55:08 +02:00
Igor Scheller 64dc16e4d9 Logger: Added handling for exceptions and log exceptions if they occur 2020-05-01 20:52:15 +02:00
Igor Scheller cffd216aa9 Exception handling: Fixed error if handler not initialized (use Legacy handler as fallback) 2020-04-24 22:32:55 +02:00
Igor Scheller ba1c658b92 Escape LegacyDevelopmentTest output 2020-04-05 20:21:13 +02:00
Igor Scheller 9329889235 Fixed LegacyDevelopment Exception handler to produce less verbose output 2019-11-30 23:44:07 +01:00
Igor Scheller 68afc74b03 Formatting to follow PSR-12 2019-11-11 00:05:41 +01:00
Igor Scheller 79c92da8c1 Formatting
```bash
php-cs-fixer fix --allow-risky=yes --rules=@PSR2,psr4,mb_str_functions.php_unit_construct,php_unit_ordered_covers,trailing_comma_in_multiline_array --rules='{"array_syntax": {"syntax":"short"}}' [tests/|src/]
```
2019-04-25 18:17:19 +02:00
Igor Scheller d15946df2d Changed `src/` code and templates to use the new user model 2018-10-31 13:43:23 +01:00
Igor Scheller 36dafdb68a Merge remote-tracking branch 'MyIgel/rebuild-psr7' 2018-09-03 22:55:54 +02:00
Igor Scheller 92c26718fd exceptions: implemented error rendering return 2018-08-14 00:17:19 +02:00
Igor Scheller 46e7fc89b4 Fixed tests after #431: Hotfix php7 syntax error 2018-08-04 22:21:13 +02:00
Jens Brandt 4a5ef5f98a rename hotfix to camelCase 2018-05-14 21:21:50 +02:00
Jens Brandt cfc2493bb5 rename hotfix to english 2018-05-14 21:08:15 +02:00
Jens Brandt 28fadbd19d Hotfix php7 syntax error 2018-05-10 15:29:32 +02:00
Bot 952c7892f3 Formatting & Docstrings 2017-12-25 23:51:15 +01:00
Igor Scheller 25e434bce4 Refactored ExceptionHandler 2017-11-25 11:27:38 +01:00
Igor Scheller 6eea072376 Added ExceptionHandler Interface 2017-11-25 11:27:38 +01:00
Igor Scheller 60fd72cd1a Added service providers 2017-10-31 13:40:13 +01:00
Igor Scheller 31414905d7 Fixed exceptionHandler to catch PdoExceptions, formatting 2017-09-20 01:29:04 +02:00
Igor Scheller d0074cf006 Merge remote-tracking branch 'engelsystem/feature-igel-rewrite'
# Conflicts:
#	includes/controller/angeltypes_controller.php
#	includes/pages/admin_groups.php
#	includes/pages/user_settings.php
#	includes/sys_page.php
#	src/Exceptions/Handler.php
#	src/Http/Request.php
2017-08-29 23:16:41 +02:00
Igor Scheller cc01c906ba #336: Integration of symfony/http-foundation request 2017-08-29 21:52:07 +02:00
msquare 440ed74cd7 exception handler should handle throwables instead of exceptions 2017-07-28 19:28:00 +02:00
msquare 144b453bc6 fix unreadable exception 2017-07-23 12:18:32 +02:00
Igor Scheller 8506d6d27e Refactoring: Config cleanup / moved to class 2017-01-21 23:07:20 +01:00
Igor Scheller f7c09cb7ff Added exception handler 2017-01-20 21:12:19 +01:00