File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -29,22 +29,22 @@ class Application
2929 /** @var string|null */
3030 public $ errorPresenter ;
3131
32- /** @var callable[] function ( Application $sender): void; Occurs before the application loads presenter */
32+ /** @var callable[]&(callable( Application $sender): void)[] ; Occurs before the application loads presenter */
3333 public $ onStartup ;
3434
35- /** @var callable[] function ( Application $sender, \Throwable $e = null): void; Occurs before the application shuts down */
35+ /** @var callable[]&(callable( Application $sender, \Throwable $e = null): void)[] ; Occurs before the application shuts down */
3636 public $ onShutdown ;
3737
38- /** @var callable[] function ( Application $sender, Request $request): void; Occurs when a new request is received */
38+ /** @var callable[]&(callable( Application $sender, Request $request): void)[] ; Occurs when a new request is received */
3939 public $ onRequest ;
4040
41- /** @var callable[] function ( Application $sender, IPresenter $presenter): void; Occurs when a presenter is created */
41+ /** @var callable[]&(callable( Application $sender, IPresenter $presenter): void)[] ; Occurs when a presenter is created */
4242 public $ onPresenter ;
4343
44- /** @var callable[] function ( Application $sender, IResponse $response): void; Occurs when a new response is ready for dispatch */
44+ /** @var callable[]&(callable( Application $sender, IResponse $response): void)[] ; Occurs when a new response is ready for dispatch */
4545 public $ onResponse ;
4646
47- /** @var callable[] function ( Application $sender, \Throwable $e): void; Occurs when an unhandled exception occurs in the application */
47+ /** @var callable[]&(callable( Application $sender, \Throwable $e): void)[] ; Occurs when an unhandled exception occurs in the application */
4848 public $ onError ;
4949
5050 /** @var Request[] */
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class PresenterFactory implements IPresenterFactory
3333
3434
3535 /**
36- * @param callable $factory function (string $class ): IPresenter
36+ * @param callable&callable (string): IPresenter $factory
3737 */
3838 public function __construct (callable $ factory = null )
3939 {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ final class CallbackResponse implements Nette\Application\IResponse
2424
2525
2626 /**
27- * @param callable $callback function (Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse): void
27+ * @param callable&callable (Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse): void $callback
2828 */
2929 public function __construct (callable $ callback )
3030 {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ abstract class Component extends Nette\ComponentModel\Container implements ISign
2626{
2727 use Nette \ComponentModel \ArrayAccess;
2828
29- /** @var callable[] function ( Component $sender): void; Occurs when component is attached to presenter */
29+ /** @var callable[]&(callable( Component $sender): void)[] ; Occurs when component is attached to presenter */
3030 public $ onAnchor ;
3131
3232 /** @var array */
Original file line number Diff line number Diff line change 1717 */
1818class Form extends Nette \Forms \Form implements ISignalReceiver
1919{
20- /** @var callable[] function ( Form $sender): void; Occurs when form is attached to presenter */
20+ /** @var callable[]&(callable( Form $sender): void)[] ; Occurs when form is attached to presenter */
2121 public $ onAnchor ;
2222
2323
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ abstract class Presenter extends Control implements Application\IPresenter
4848 /** @var int */
4949 public $ invalidLinkMode ;
5050
51- /** @var callable[] function ( Presenter $sender): void; Occurs when the presenter is starting */
51+ /** @var callable[]&(callable( Presenter $sender): void)[] ; Occurs when the presenter is starting */
5252 public $ onStartup ;
5353
54- /** @var callable[] function ( Presenter $sender, IResponse $response): void; Occurs when the presenter is shutting down */
54+ /** @var callable[]&(callable( Presenter $sender, IResponse $response): void)[] ; Occurs when the presenter is shutting down */
5555 public $ onShutdown ;
5656
5757 /** @var bool automatically call canonicalize() */
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class TemplateFactory implements UI\ITemplateFactory
2121{
2222 use Nette \SmartObject;
2323
24- /** @var callable[] function ( Template $template): void; Occurs when a new template is created */
24+ /** @var callable[]&(callable( Template $template): void)[] ; Occurs when a new template is created */
2525 public $ onCreate ;
2626
2727 /** @var ILatteFactory */
You can’t perform that action at this time.
0 commit comments