Skip to content

Commit

Permalink
2023-01-16 AC: Release-5.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewscaya committed Jan 17, 2023
2 parents f455e3d + aa314ca commit 5bf6366
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## 5.0.1 (2023-01-16)

- Fixes an issue with the error handler in production mode.
- Updates the project's dependencies.

## 5.0.0 (2023-01-10)

- Makes the \Doctrine\Common library a core ASCMVC library (\Ascmvc\Session\Common).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ Then, from within the root directory of the project, you can run the following c
## Upgrading from 4.0.0 to 5.0.0

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.
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.

### Have a lot of fun! :)
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"require": {
"php": ">=8.0 <8.3",
"lightmvc/ascmvc": "5.0.0"
"lightmvc/ascmvc": "5.0.1"
},
"require-dev": {
"linuxforphp/linuxforcomposer": "^2.0"
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@
$app->setSessionManager($sessionManager);

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

throw new \Exception($errstr);
# For debugging purposes only!
//throw new \Exception($errstr);
});

try {
Expand Down

0 comments on commit 5bf6366

Please sign in to comment.