Skip to content

Problem with PHP type in setter value type with Prado tpl/Page. #836

@zendre4

Description

@zendre4

If we use Php type in parameter of a setter function, the expected result is not correct. Example, with a simple component :

<?php

use Prado\Web\UI\ActiveControls\TActivePanel;

class TTest extends TActivePanel {
    public function setValue(bool $value): void {
        $this->setViewState("Value", $value, true);
    }
}

When we set the value property on a tpl like this :

<com:TTest Value="false" />

The value is true instead of false

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