Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
- Removed callable type from method add
  • Loading branch information
nabeghe committed Nov 17, 2024
1 parent 70eb354 commit 6ace088
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nabeghe/wp-shortcodes",
"description": "A standalone version of WordPress shortcodes system for use outside WordPress.",
"type": "library",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/nabeghe/wp-shortcodes",
"license": "GPL-2.0+",
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Shortcodes
* itself (`$shortcode_tag`), in that order.
* @throws ShortcodeException
*/
public function add(string $tag, callable $callback): void
public function add(string $tag, $callback): void
{
if ('' === trim($tag)) {
throw new ShortcodeException('Invalid shortcode name: Empty name given.');
Expand Down

0 comments on commit 6ace088

Please sign in to comment.