Skip to content

Commit

Permalink
Merge pull request #14424 from craftcms/feature/console-errors-to-stderr
Browse files Browse the repository at this point in the history
Initially display errors to stderr for console
  • Loading branch information
brandonkelly authored Feb 18, 2024
2 parents 5af80f0 + c283278 commit 1eac34f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Fixed the type annotation for `craft\behaviors\CustomFieldBehavior::$fieldHandles`. ([#14421](https://github.com/craftcms/cms/issues/14421))
- Fixed a bug where the <kbd>Shift</kbd> + <kbd>Spacebar</kbd> keyboard shortcut for previewing assets was only working for the first selected asset, rather than the focussed one.
Fixed a JavaScript error that could occur when previewing an image.
- Fixed a bug where PHP errors that occurred during bootstrap weren’t getting logged to `stderr` for console requests. ([#14424](https://github.com/craftcms/cms/pull/14424))

## 4.7.3 - 2024-02-15

Expand Down
2 changes: 2 additions & 0 deletions bootstrap/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

use yii\console\ExitCode;

ini_set('display_errors', 'stderr');

// Make sure they're running PHP 8+
if (PHP_VERSION_ID < 80002) {
echo "Craft requires PHP 8.0.2 or later.\n";
Expand Down

0 comments on commit 1eac34f

Please sign in to comment.