Skip to content
Open
Changes from all commits
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
7 changes: 7 additions & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# - Globals: Forbid direct $GLOBALS access
# - Testing: Forbid @covers annotations
# - LegacyPHP: Forbid call_user_func/call_user_func_array
# - Logging: Forbid error_log() in favor of SystemLogger
# - Module: Controller request/response handling
# - Deprecation: Report usage of deprecated code (via phpstan/phpstan-deprecation-rules)
#
Expand Down Expand Up @@ -33,6 +34,12 @@ parameters:
message: 'Use first-class callables instead of call_user_func_array().'
errorTip: 'Example: $callable = someFunction(...); $callable(...$args);'

# Logging functions (use SystemLogger instead)
-
function: 'error_log()'
message: 'Use SystemLogger instead of error_log().'
errorTip: 'Example: (new SystemLogger())->error($message) or $this->logger->error($message)'

# Legacy SQL functions (use QueryUtils or DatabaseQueryTrait instead)
-
function: 'sqlQuery()'
Expand Down