Skip to content

Commit 67fcc79

Browse files
committed
Fix deprecated warning on PHP 8.1 (#391)
1 parent ae086bf commit 67fcc79

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

SourceGithub/SourceGithub.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public function hooks() {
4646
*/
4747
public function resources( $p_event ) {
4848
# Only include the javascript when it's actually needed
49-
parse_str( parse_url( $_SERVER['REQUEST_URI'], PHP_URL_QUERY ), $t_query );
49+
$t_url_query = parse_url( $_SERVER['REQUEST_URI'] , PHP_URL_QUERY );
50+
parse_str( $t_url_query ?? '', $t_query );
5051
if( array_key_exists( 'page', $t_query ) ) {
5152
$t_page = basename( $t_query['page'] );
5253
if( $t_page == 'repo_update_page' ) {

docs/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ specification.
1010

1111
# Releases for MantisBT 2.x
1212

13+
## [Unreleased]
14+
15+
### Fixed
16+
17+
- PHP 8.1 compatibility
18+
[#391](https://github.com/mantisbt-plugins/source-integration/issues/391)
19+
20+
1321
## [2.5.1] - 2022-02-10
1422

1523
### Fixed

0 commit comments

Comments
 (0)