When both a GitHub and a GitLab repo are defined in the same instance, and a GitHub webhook triggers a checkin operation, GitLab's precommit() attempts to process the GitHub payload.
Since that does not have the project_id key, PHP throws
SYSTEM WARNING: 'Undefined array key "project_id"' in '/path.to/mantisbt/plugins/source-integration/SourceGitlab/SourceGitlab.php' line 215