File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/framework/src/Framework/Concerns Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 44
55namespace Hyde \Framework \Concerns ;
66
7+ use JetBrains \PhpStorm \Deprecated ;
8+
79/**
810 * Base class for invokable actions. Provides a helper to invoke the action statically.
911 *
12+ * @deprecated None of these child classes are ever used invokably used.
13+ * A better alternative is to simply use a static `handle` method as that offers full type and IDE support.
1014 * @see \Hyde\Framework\Testing\Feature\InvokableActionTest
1115 */
1216abstract class InvokableAction
1317{
1418 abstract public function __invoke (): mixed ;
1519
20+ #[Deprecated(replacement: '%class%::handle(%parametersList%) ' )]
1621 public static function call (mixed ...$ args ): mixed
1722 {
1823 return (new static (...$ args ))->__invoke ();
You can’t perform that action at this time.
0 commit comments