Fix PHPStan errors

Created on 3 March 2024, about 1 year ago
Updated 31 July 2024, 8 months 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

Fixed

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.71.5 2024