Skip to content

TypeError: Return value of Config::getPaths() #9

@craigrodway

Description

@craigrodway

Hello! 👋

With 0.13.0, I'm getting the following error when going to the module settings page:

Uncaught TypeError: Return value of Wireframe\Config::getPaths() must be of the type array, object returned in [path]\site\modules\Wireframe\lib\Config.php:181

It is fixed by changing the definition line from/to:

protected function getPaths(): array {

protected function getPaths(): object {

In that function, $paths is treated as an object, and is retrieved from $this->wireframe->paths, which is set to an object using setPaths():

$this->paths = (object) $paths

Not sure if it should be an array or an object - but thought I'd let you know! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions