Exclude `tests/src/Cypress/node_modules` from PHPStan paths

Created on 5 September 2024, 3 months ago
Updated 19 September 2024, 2 months ago

I'm getting PHPStan failures on tests/src/Cypress/node_modules/flatted/php/flatted.php. ui/node_modules is excluded in our phpstan.neon for precisely this reason, but a symlink to that directory (tests/src/Cypress/node_modules -> ../../../ui/node_modules) gets analyzed distinctly and so bypasses the exclusion.

I thought maybe I had done something wrong to cause the symlink, but it's actually committed to Git, so apparently not. (It was added in πŸ› Undo/redo - user can undo the loading of the initial state Active (0338812d).) I don't know what the reason was or why it apparently isn't causing other people problems or failing builds, but whatever. Β―\_(ツ)_/Β―

I'll submit an MR that I assume is nothing but a naive workaround, but will at least illustrate the problem.

πŸ“Œ Task
Status

Fixed

Component

Page builder

Created by

πŸ‡ΊπŸ‡ΈUnited States traviscarden

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