Skip to editor
Psalm
Docs
Playground
Plugins
Blog
Paid support
Share
Fix issues
Show original
PHP
Settings
<?php class Test { public function getPrivateMethod(): callable { return [$this, 'privateMethod']; } private function privateMethod(): void { echo __METHOD__, "\n"; } } $test = new Test; $privateMethod = $test->getPrivateMethod(); $privateMethod();
Issues
Types
idle
Saved May 20 2021 17:33 UTC
⌘/Ctrl+Enter
run
⌘/Ctrl+S
share
F8
/
⇧F8
next/prev issue