Skip to content

There is still a bug in some static variables #82

Closed
@ghost

Description

Hi again,

Regarding to the previous issue #79, now I have found a new bug with static variables, you can reproduce it with this code:

<?php

class MyClass extends MyForms
{
    private static $defaultClass = 'OtherClass';

    final public static function getForm($class = false)
    {
        if ($class !== false) {
            return new $class();
        }

        return new self::$defaultClass();
    }
}

Please check this capture.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions