Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292900

[META] Fix strict type errors detected by phpstan

$
0
0

Problem/Motivation

Before we can add declare(strict_types=1) to existing code we need to fix strict type errors. We can detect some of these with phpstan, via the FunctionCallParametersCheck rule.

Steps to reproduce

To activate the FunctionCallParametersCheck rule we can add the following parameter to phpstan.neon.dist:

parameters:
  checkFunctionArgumentTypes: true

Proposed resolution

Review detected errors and fix them in child issues.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 292900

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>