Add declare(strict_types=1) to all test modules

Created on 9 November 2023, over 1 year ago
Updated 7 September 2024, 6 months ago

Problem/Motivation

This is a child issue of 📌 Fix strict type errors in test modules Needs work . After fixing strict type issues we can add the strict_types declaration to all test modules.

Steps to reproduce

Add to phpcs.xml.dist:

  <rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
    <properties>
      <property name="spacesCountAroundEqualsSign" value="0" />
    </properties>
    <include-pattern>*/tests/modules/*</include-pattern>
    <include-pattern>*/tests/*_test/*</include-pattern>
  </rule>

Run phpcs:

composer phpcs

Proposed resolution

Run phpcbf:

composer phpcbf

Remaining tasks

Review individual commits of this MR to highlight the additional changes needed to make it pass.

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
PHPUnit 

Last updated about 11 hours ago

Created by

🇦🇺Australia mstrelan

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