drahak / Restful

Drahak\Restful - Nette REST API bundle
0 stars 0 forks source link

Panel is not compatible with Nette 2.4 #123

Open jspetrak opened 8 years ago

jspetrak commented 8 years ago

`Error: Drahak\Restful\Diagnostics\ResourceRouterPanel ErrorException: callback() is deprecated; use native PHP callback. in C:\Users\jspet\Sites\project\vendor\nette\deprecated\src\shortcuts.php:35 Stack trace:

0 [internal function]: Tracy\Bar->Tracy{closure}(16384, 'callback() is d...', 'C:\Users\jspet...', 35, Array)

1 C:\Users\jspet\Sites\project\vendor\nette\deprecated\src\shortcuts.php(35): trigger_error('callback() is d...', 16384)

2 C:\Users\jspet\Sites\project\vendor\drahak\restful\src\Drahak\Restful\Diagnostics\ResourceRouterPanel.php(75): callback('Nette\Templatin...')

3 C:\Users\jspet\Sites\project\vendor\tracy\tracy\src\Tracy\Bar.php(127): Drahak\Restful\Diagnostics\ResourceRouterPanel->getPanel()

4 C:\Users\jspet\Sites\project\vendor\tracy\tracy\src\Tracy\Bar.php(81): Tracy\Bar->renderPanels()

5 C:\Users\jspet\Sites\project\vendor\tracy\tracy\src\Tracy\Debugger.php(266): Tracy\Bar->render()

6 [internal function]: Tracy\Debugger::shutdownHandler()

7 {main}`

Salamek commented 7 years ago

@jspetrak there is no callback() in current dev-master, so just update your package by running composer update and it should work for nette 2.4 (just running on it with not problem)