Skip to content

Commit faa1353

Browse files
committed
chore: remove return types from magic methods
1 parent 5a6bcfa commit faa1353

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/WPGraphQL.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,21 @@ public static function instance(): self {
9696
* The whole idea of the singleton design pattern is that there is a single object
9797
* therefore, we don't want the object to be cloned.
9898
*
99+
* @return void
99100
* @since 0.0.1
100101
*/
101-
public function __clone(): void {
102+
public function __clone() {
102103
// Cloning instances of the class is forbidden.
103104
_doing_it_wrong( __FUNCTION__, esc_html__( 'The WPGraphQL class should not be cloned.', 'wp-graphql' ), '0.0.1' );
104105
}
105106

106107
/**
107108
* Disable unserializing of the class.
108109
*
110+
* @return void
109111
* @since 0.0.1
110112
*/
111-
public function __wakeup(): void {
113+
public function __wakeup() {
112114
// De-serializing instances of the class is forbidden.
113115
_doing_it_wrong( __FUNCTION__, esc_html__( 'De-serializing instances of the WPGraphQL class is not allowed', 'wp-graphql' ), '0.0.1' );
114116
}

0 commit comments

Comments
 (0)