Fix PHPStan errors

Created on 3 March 2024, 4 months ago
Updated 25 June 2024, 1 day ago

Problem/Motivation

The PHPStan static analyzer helps developers find coding errors by checking parameter types and functions.

When you go to https://git.drupalcode.org/project/feeds/-/pipelines and then on "stages", choose phpstan, you will see a list of coding issues.

PHPStan Latest pipeline: https://git.drupalcode.org/issue/feeds-3430449/-/jobs/1859382

Steps to reproduce

Install phpstan-drupal in a site with:
composer require --dev mglaman/phpstan-drupal

Run PHPStan's analyze command against the module:

vendor/bin/phpstan analyze web/modules/contrib/feeds

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇳🇱Netherlands MegaChriz

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