@@ -123,7 +123,7 @@ public static function onReadable($stream, callable $callback)
123
123
*
124
124
* @return string An identifier that can be used to cancel, enable or disable the event.
125
125
*/
126
- public function onWritable ($ stream , callable $ callback )
126
+ public static function onWritable ($ stream , callable $ callback )
127
127
{
128
128
self ::inScope ();
129
129
@@ -138,7 +138,7 @@ public function onWritable($stream, callable $callback)
138
138
*
139
139
* @return string An identifier that can be used to cancel, enable or disable the event.
140
140
*/
141
- public function onSignal (int $ signo , callable $ callback )
141
+ public static function onSignal (int $ signo , callable $ callback )
142
142
{
143
143
self ::inScope ();
144
144
@@ -152,7 +152,7 @@ public function onSignal(int $signo, callable $callback)
152
152
*
153
153
* @return string An identifier that can be used to cancel, enable or disable the event.
154
154
*/
155
- public function onError (callable $ callback )
155
+ public static function onError (callable $ callback )
156
156
{
157
157
self ::inScope ();
158
158
@@ -166,7 +166,7 @@ public function onError(callable $callback)
166
166
*
167
167
* @return void
168
168
*/
169
- public function enable (string $ eventIdentifier )
169
+ public static function enable (string $ eventIdentifier )
170
170
{
171
171
self ::inScope ();
172
172
@@ -180,7 +180,7 @@ public function enable(string $eventIdentifier)
180
180
*
181
181
* @return void
182
182
*/
183
- public function disable (string $ eventIdentifier )
183
+ public static function disable (string $ eventIdentifier )
184
184
{
185
185
self ::inScope ();
186
186
@@ -194,7 +194,7 @@ public function disable(string $eventIdentifier)
194
194
*
195
195
* @return void
196
196
*/
197
- public function cancel (string $ eventIdentifier )
197
+ public static function cancel (string $ eventIdentifier )
198
198
{
199
199
self ::inScope ();
200
200
@@ -210,7 +210,7 @@ public function cancel(string $eventIdentifier)
210
210
*
211
211
* @return void
212
212
*/
213
- public function reference (string $ eventIdentifier )
213
+ public static function reference (string $ eventIdentifier )
214
214
{
215
215
self ::inScope ();
216
216
@@ -227,7 +227,7 @@ public function reference(string $eventIdentifier)
227
227
*
228
228
* @return void
229
229
*/
230
- public function unreference (string $ eventIdentifier )
230
+ public static function unreference (string $ eventIdentifier )
231
231
{
232
232
self ::inScope ();
233
233
0 commit comments