Skip to content

Commit 5bf6366

Browse files
committed
2023-01-16 AC: Release-5.0.1.
2 parents f455e3d + aa314ca commit 5bf6366

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## 5.0.1 (2023-01-16)
4+
5+
- Fixes an issue with the error handler in production mode.
6+
- Updates the project's dependencies.
7+
38
## 5.0.0 (2023-01-10)
49

510
- Makes the \Doctrine\Common library a core ASCMVC library (\Ascmvc\Session\Common).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ Then, from within the root directory of the project, you can run the following c
4343
4444
## Upgrading from 4.0.0 to 5.0.0
4545

46-
When upgrading from version 4.0.0 to 5.0.0, please make sure to replace the \Doctrine\Common namespace with the \Ascmvc\Session\Common in your config/session.config.php file.
46+
When upgrading from version 4.0.0 to 5.0.0, please make sure to replace the namespace \Doctrine\Common with \Ascmvc\Session\Common in your config/session.config.php file.
4747

4848
### Have a lot of fun! :)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
],
2121
"require": {
2222
"php": ">=8.0 <8.3",
23-
"lightmvc/ascmvc": "5.0.0"
23+
"lightmvc/ascmvc": "5.0.1"
2424
},
2525
"require-dev": {
2626
"linuxforphp/linuxforcomposer": "^2.0"

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/index.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@
5050
$app->setSessionManager($sessionManager);
5151

5252
if($baseConfig['env'] === 'production') {
53-
set_error_handler(function($errno, $errstr, $errfile, $errline, array $errcontext) {
53+
set_error_handler(function($errno, $errstr, $errfile, $errline) {
5454
// error was suppressed with the @-operator
5555
if (0 === error_reporting()) {
5656
return false;
5757
}
5858

59-
throw new \Exception($errstr);
59+
# For debugging purposes only!
60+
//throw new \Exception($errstr);
6061
});
6162

6263
try {

0 commit comments

Comments
 (0)