Add declare(strict_types=1) to all Functional JavaScript tests

Created on 8 November 2023, 8 months ago
Updated 12 December 2023, 7 months ago

Problem/Motivation

This is a child issue of 📌 Fix strict type errors in functional JavaScript tests Fixed . After fixing strict type issues we can add the strict_types declaration to all Functional JavaScript tests.

Steps to reproduce

Add to phpcs.xml.dist:

  <rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
    <properties>
      <property name="spacesCountAroundEqualsSign" value="0" />
    </properties>
    <include-pattern>*/tests/src/FunctionalJavascript/*</include-pattern>
    <include-pattern>./tests/Drupal/FunctionalJavascriptTests/*</include-pattern>
  </rule>

Run phpcs:

composer phpcs

Proposed resolution

Run phpcbf:

composer phpcbf

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.2

Component
PHPUnit 

Last updated 1 day 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.69.0 2024