Skip to content

Bug: classes overwrites parameter defaults, phpDoc's defined in interfaces #4086

@WinterSilence

Description

@WinterSilence

Please fix difference(phpDoc, parameter defaults) between classes and their interfaces.

For example:
in system/View/RendererInterface.php $saveData = false:

interface RendererInterface {
public function render(string $view, array $options = null, bool $saveData = false): string;
public function renderString(string $view, array $options = null, bool $saveData = false): string;
}

in system/View/View.php $saveData = null:

class View implements RendererInterface {
public function render(string $view, array $options = null, bool $saveData = null): string
public function renderString(string $view, array $options = null, bool $saveData = null): string
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions