Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helpers::improveException fatal error if class name is "parent" #479

Closed
MartkCz opened this issue Apr 18, 2021 · 0 comments
Closed

Helpers::improveException fatal error if class name is "parent" #479

MartkCz opened this issue Apr 18, 2021 · 0 comments

Comments

@MartkCz
Copy link
Contributor

MartkCz commented Apr 18, 2021

When I have following wrong code:

$this->onAnchor[] = [$this, 'init'];

private function init(): void

PHP fatal error printed: Fatal error: Uncaught TypeError: get_class_methods(): Argument #1 ($object_or_class) must be an object or a valid class name, string given in /var/www/html/vendor/tracy/tracy/src/Tracy/Helpers.php on line 187 in https://github.com/nette/tracy/blob/master/src/Tracy/Helpers.php#L187

Because of original message: Call to undefined method parent::init(). "parent" is not valid class name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant