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 Deprecated: trim(): Passing null to parameter #1 ($string) o… #251

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

paladox
Copy link
Contributor

@paladox paladox commented Dec 15, 2023

…f type string is deprecated"

@codecov-commenter
Copy link

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (6f2834a) 0.00% compared to head (db6d80d) 0.00%.

Files Patch % Lines
includes/Parse.php 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             master    #251   +/-   ##
========================================
  Coverage      0.00%   0.00%           
  Complexity     1569    1569           
========================================
  Files            23      23           
  Lines          4262    4262           
========================================
  Misses         4262    4262           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -886,10 +886,10 @@
$scrollVariables = (array)$scrollVariables;

foreach ( $scrollVariables as $variable => $value ) {
Variables::setVar( [ '', '', $variable, $value ] );
Variables::setVar( [ '', '', $variable, $value ?? '' ] );

Check warning

Code scanning / Phpmd (reported by Codacy)

Static access leads to hard to test code Warning

Avoid using static access to class 'MediaWiki\Extension\DynamicPageList3\Variables' in method 'defineScrollVariables'.
@Universal-Omega Universal-Omega merged commit 811467f into Universal-Omega:master Dec 15, 2023
21 of 24 checks passed
MrVanosh pushed a commit to Wikia/DynamicPageList3 that referenced this pull request Dec 18, 2023
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.

3 participants