Skip to content

Change phpdoc for files->render() #981

Open
@BernhardBaumrock

Description

@BernhardBaumrock

I'm using $files->render() often to get an array (like an array of translatable strings). The phpdoc states string|bool as return type which makes my IDE show a red line indicating an error that is actually none.

Would be great to change it to @return mixed as it could return any php data type.

https://github.com/processwire/processwire/blob/649d2569abc10bac43e98ca98db474dd3d6603ca/wire/core/WireFileTools.php#L854

This is how I'm using it:
https://github.com/BernhardBaumrock/RockTabulator/blob/9f50c14ddc356736b578b767f7f0fb62e6814cee/RockTabulator.module.php#L80
https://github.com/BernhardBaumrock/RockTabulator/blob/9f50c14ddc356736b578b767f7f0fb62e6814cee/_langs.php

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions