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

Fix PHP Notices: Reduce error log noise #2057

Merged
merged 1 commit into from Jul 26, 2017
Merged

Fix PHP Notices: Reduce error log noise #2057

merged 1 commit into from Jul 26, 2017

Conversation

micgro42
Copy link
Collaborator

The core still throws some notices. Even though DokuWiki suppresses them, I think they are worth fixing.

Especially the changes in /inc/parser/renderer.php could be refactored into nicer code once we reach PHP 7 and can access the ?? operator.

However, there are still many Notices being thrown by plugins.

PS: I wrote a small Plugin to display notices and other errors suppressed by DokuWiki. I find it helpful during development.

While DokuWiki suppresses PHP Notices they are still a code smell and
should be fixed. This fixes some PHP Notices that occurred.

Some of these fixes could be refactored into nicer code once we move to
PHP 7 and get access to the `??` operator.
@mention-bot
Copy link

@micgro42, thanks for your PR! By analyzing the history of the files in this pull request, we identified @splitbrain, @selfthinker and @Klap-in to be potential reviewers.

@splitbrain splitbrain merged commit f20cfb1 into master Jul 26, 2017
@splitbrain splitbrain deleted the fixCoreNotices branch July 26, 2017 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants