Skip to content

[BUG]: StatementList and readMetaDataIndex wrong return types #16613

@oleghind

Description

@oleghind

final protected function statementList(array! statements, bool extendsMode = false) -> string

It sometimes returns null which leads to the crash:

PHP Fatal error: Phalcon\Mvc\View\Engine\Volt\Compiler::statementList(): Return value must be of type string, null returned

Also similar on the readMetaDataIndex function
PHP Fatal error: Phalcon\Mvc\Model\MetaData::readMetaDataIndex(): Return value must be of type ?array, string returned

Metadata

Metadata

Assignees

Labels

5.0The issues we want to solve in the 5.0 releasebugA bug reportstatus: mediumMedium

Type

No fields configured for Bug.

Projects

Status
Implemented

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions