File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1253,9 +1253,7 @@ private function getDescriptors(): array
12531253 protected function buildCallback (callable $ callback = null ): \Closure
12541254 {
12551255 if ($ this ->outputDisabled ) {
1256- return function ($ type , $ data ) use ($ callback ): bool {
1257- return null !== $ callback && $ callback ($ type , $ data );
1258- };
1256+ return fn ($ type , $ data ): bool => null !== $ callback && $ callback ($ type , $ data );
12591257 }
12601258
12611259 $ out = self ::OUT ;
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ public function testWaitUntilCanReturnFalse()
155155 {
156156 $ p = $ this ->getProcess ('echo foo ' );
157157 $ p ->start ();
158- $ this ->assertFalse ($ p ->waitUntil (function () { return false ; } ));
158+ $ this ->assertFalse ($ p ->waitUntil (fn () => false ));
159159 }
160160
161161 public function testAllOutputIsActuallyReadOnTermination ()
You can’t perform that action at this time.
0 commit comments