Add (more) bool return typehints to protected test helper methods

Created on 26 August 2024, 3 months ago

Problem/Motivation

See 🌱 Add return typehints to protected test helper methods Active

Looks like some bool returns were missed in 📌 Add bool return typehints to protected test helper methods RTBC .

The steps to reproduce below should help to find more.

Steps to reproduce

Add this to phpcs.xml.dist

<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
  <include-pattern>*/tests/*</include-pattern>
</rule>

Run composer phpcbf

Grep the git diff output for changes that add : bool to protected or private methods:

git diff 11.x | grep -E "\+  (protected|private) function .*)\: bool"

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

RTBC

Version

11.0 🔥

Component
PHPUnit  →

Last updated 23 minutes 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