Remove unused variables in catch statements

Created on 16 February 2024, 9 months ago
Updated 31 July 2024, 4 months ago

Problem/Motivation

Since PHP 8.0 we can omit the exception variable in catch blocks if the variable is unused.

Steps to reproduce

Proposed resolution

Add SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch to phpcs.xml.dist and run composer phpcbf.

Remaining tasks

Discuss coding standards

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Other 

Last updated about 9 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