Skip to content

Commit 6ace088

Browse files
committed
v1.0.1
- Removed callable type from method add
1 parent 70eb354 commit 6ace088

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nabeghe/wp-shortcodes",
33
"description": "A standalone version of WordPress shortcodes system for use outside WordPress.",
44
"type": "library",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"homepage": "https://github.com/nabeghe/wp-shortcodes",
77
"license": "GPL-2.0+",
88
"autoload": {

src/Shortcodes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Shortcodes
5757
* itself (`$shortcode_tag`), in that order.
5858
* @throws ShortcodeException
5959
*/
60-
public function add(string $tag, callable $callback): void
60+
public function add(string $tag, $callback): void
6161
{
6262
if ('' === trim($tag)) {
6363
throw new ShortcodeException('Invalid shortcode name: Empty name given.');

0 commit comments

Comments
 (0)