Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-fix isset check and revert PR #539 #546

Merged
merged 5 commits into from
Nov 10, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
doc: note when new public method became available
  • Loading branch information
Bishop Bettini committed Nov 8, 2021
commit 8bc8cc787f26942fcfe9e73bb750b98ce12909c6
5 changes: 5 additions & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,11 @@ private function levelTooLow(Level $level): bool
return $level->toInt() < $this->minimumLevel;
}

/**
* Decides if a given log message should be suppressed by policy.
* If so, then a debug message is emitted: "Ignoring (error reporting has been disabled in PHP config"
* @since 3.0.1
*/
public function shouldSuppress(): bool
{
return error_reporting() === 0 && !$this->reportSuppressed;
Expand Down