Commit 6ace088 1 parent 70eb354 commit 6ace088 Copy full SHA for 6ace088
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " nabeghe/wp-shortcodes" ,
3
3
"description" : " A standalone version of WordPress shortcodes system for use outside WordPress." ,
4
4
"type" : " library" ,
5
- "version" : " 1.0.0 " ,
5
+ "version" : " 1.0.1 " ,
6
6
"homepage" : " https://github.com/nabeghe/wp-shortcodes" ,
7
7
"license" : " GPL-2.0+" ,
8
8
"autoload" : {
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class Shortcodes
57
57
* itself (`$shortcode_tag`), in that order.
58
58
* @throws ShortcodeException
59
59
*/
60
- public function add (string $ tag , callable $ callback ): void
60
+ public function add (string $ tag , $ callback ): void
61
61
{
62
62
if ('' === trim ($ tag )) {
63
63
throw new ShortcodeException ('Invalid shortcode name: Empty name given. ' );
You can’t perform that action at this time.
0 commit comments