CSSDeprecationAnalyzer::getAllCSSFiles() returns directories with a name that ends in ".css"

Created on 28 November 2022, over 1 year ago
Updated 20 September 2023, 9 months ago

Problem/Motivation

We have a directory named normalize.css and CSSDeprecationAnalyzer::getAllCSSFiles() returns it.
This then triggers a warning because file_get_contents() can't open it:

 [info] file_get_contents(): Read of 8192 bytes failed with errno=21 Is a directory CSSDeprecationAnalyzer.php:30 [3.44 sec, 42.54 MB]

Proposed resolution

We could call is_file() on each path.

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024