Fix phpstan warnings

Created on 12 March 2024, 4 months ago
Updated 15 June 2024, 13 days ago

Problem/Motivation

At levels 6 and above, the module causes many PHPstan warnings. Fix them to we can focus on more important issues.

Steps to reproduce

  • Install a Drupal 10.3 site
  • Install the module
  • Install the core_dev and the upgrade_status module, which will set up PHPstan
  • From the project root: ./vendor/bin/phpstan analyse -l9 web/modules/contrib/url_replace_filter

Proposed resolution

Apply the required fixes: most of them are just PHPdocs to add, but also include the params and return types.

Remaining tasks

Pass PHPstan level 9.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France fgm Paris, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024