Skip to content

Improve check on loading cached file if the file not found #19774

Closed
@lubosdz

Description

@lubosdz

What steps will reproduce the problem?

Attempt to load from filecache if cached file does not exist throws in debug mode error (although supressed).

What is the expected result?

PHP should detect whether file exists via is_file($path) rather than via supressed errors @. Supressed errors still show errors & warnings in debug mode and is generally not preferred way to handle missing files.

Additional info

Q A
Yii version 2.0.47
PHP version 8.0+
Operating system Win10

PR - #19773

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions