Skip to content

Call to static method on an unknown class  #265

@lookyman

Description

@lookyman
class Foo
{
	public function bar()
	{
		if (class_exists('\Bla')) {
			Bla::baz();
		}
	}
}

produces Call to static method baz() on an unknown class Bla, if the Bla class really does not exist. What should we do in this case? Or, what can we do?

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