PHP standard issues
These categories cover general PHP programming errors and code quality issues that apply to any PHP project.Undefined issues
Issues related to using code elements before they are defined.undefined_variable
Variable used before definition
undefined_method
Method doesn’t exist
undefined_class
Class not found
undefined_constant
Constant not defined
undefined_function
Function doesn’t exist
undefined_property
Property doesn’t exist
You can exclude all undefined issues at once using the
undefined preset. See Filtering for details.Type issues
Issues related to type mismatches and type safety violations.type_mismatch
Type doesn’t match expected type
return_type
Return type error
parameter_type
Parameter type error
null_safety
Potential null pointer issue
Unused code
Code elements that are declared but never used.unused_variable
Variable declared but never used
unused_parameter
Parameter never used
unused_import
Import statement not needed
dead_code
Unreachable code
You can exclude all unused code issues using the
unused preset. See Filtering for details.Syntax and structure
Issues related to PHP syntax errors and structural problems.syntax_error
PHP syntax error
missing_return
Missing return statement
invalid_inheritance
Invalid class inheritance
interface_violation
Interface not properly implemented
abstract_violation
Abstract class violation
visibility_violation
Visibility modifier error
Method and property access
Issues related to accessing methods and properties incorrectly.static_call_error
Static method call error
instantiation_error
Cannot instantiate class
array_access_error
Invalid array access
PocketMine-MP specific issues
These categories are specific to PocketMine-MP plugin development and cover API usage, threading, and plugin structure.Plugin structure
Issues related to plugin configuration and main class setup.invalid_plugin_yml
plugin.yml has errors
main_class_mismatch
Main class doesn’t match plugin.yml
invalid_api_version
API version format invalid
- Detected by: PluginYmlAnalyzer (src/Analyzer/PluginYmlAnalyzer.php:14)
- Main class validation: MainClassAnalyzer (src/Analyzer/MainClassAnalyzer.php:26)
Event handling
Issues related to event listeners and handlers.invalid_event_handler
Event handler signature wrong
unregistered_listener
Listener not registered
invalid_event_priority
Event priority invalid
cancelled_event_access
Accessing cancelled event incorrectly
- LOWEST
- LOW
- NORMAL
- HIGH
- HIGHEST
- MONITOR
- Detected by: EventHandlerAnalyzer (src/Analyzer/EventHandlerAnalyzer.php:13)
API deprecation
Issues related to using deprecated PocketMine-MP APIs.deprecated_api
Using deprecated PocketMine-MP API
- Detected by: DeprecatedApiAnalyzer
- Tracks 74+ deprecated methods, 8+ deprecated classes
- Covers API versions 3.x, 4.x, and 5.x
Threading and async
Issues related to AsyncTasks and thread safety.async_task_misuse
AsyncTask used incorrectly
thread_safety
Thread safety violation
- Detected by: AsyncTaskAnalyzer (src/Analyzer/AsyncTaskAnalyzer.php:15)
- Detected by: ThreadSafetyAnalyzer (src/Analyzer/ThreadSafetyAnalyzer.php:15)
Scheduler and tasks
Issues related to task scheduling.scheduler_misuse
Scheduler used incorrectly
Configuration and resources
Issues related to config files and plugin resources.config_misuse
Config handling error
resource_missing
Resource file not found
Commands and permissions
Issues related to command and permission definitions.command_mismatch
Command definition mismatch
permission_mismatch
Permission definition mismatch
op- Only operatorsnotop- Everyone except operatorstrue- Everyonefalse- No one (must be granted explicitly)
Filtering by category
You can exclude specific categories from your analysis:unused- All unused code issuesundefined- All undefined reference issuespocketmine- All PocketMine-MP specific issues