Skip to content

Commit 8d0b7eb

Browse files
committed
Fix php-cs-fixer setup
1 parent b8ea978 commit 8d0b7eb

File tree

8 files changed

+8
-6
lines changed

8 files changed

+8
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.php_cs.cache
22
.phpunit.result.cache
3+
.php-cs-fixer.cache
34
build
45
coverage
56
composer.lock

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"revolt/event-loop": "^0.2.4"
1818
},
1919
"require-dev": {
20+
"friendsofphp/php-cs-fixer": "^3.0",
2021
"phpunit/phpunit": "^9.5.21",
2122
"psalm/phar": "^4.24"
2223
},

test/EvTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function createLoop(): LoopInterface
1313
$this->markTestSkipped("ext-ev required");
1414
}
1515

16-
EventLoop::setDriver(new EventLoop\Driver\EvDriver);
16+
EventLoop::setDriver(new EventLoop\Driver\EvDriver());
1717
return RevoltLoop::get();
1818
}
1919
}

test/EvTimerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function createLoop(): LoopInterface
1313
$this->markTestSkipped("ext-ev required");
1414
}
1515

16-
EventLoop::setDriver(new EventLoop\Driver\EvDriver);
16+
EventLoop::setDriver(new EventLoop\Driver\EvDriver());
1717
return RevoltLoop::get();
1818
}
1919
}

test/EventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function createLoop(): LoopInterface
1313
$this->markTestSkipped("ext-event required");
1414
}
1515

16-
EventLoop::setDriver(new EventLoop\Driver\EventDriver);
16+
EventLoop::setDriver(new EventLoop\Driver\EventDriver());
1717
return EventLoop\Adapter\React\RevoltLoop::get();
1818
}
1919
}

test/EventTimerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function createLoop(): LoopInterface
1313
$this->markTestSkipped("ext-event required");
1414
}
1515

16-
EventLoop::setDriver(new EventLoop\Driver\EventDriver);
16+
EventLoop::setDriver(new EventLoop\Driver\EventDriver());
1717
return RevoltLoop::get();
1818
}
1919
}

test/UvTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function createLoop(): LoopInterface
1313
$this->markTestSkipped("ext-uv required");
1414
}
1515

16-
EventLoop::setDriver(new EventLoop\Driver\UvDriver);
16+
EventLoop::setDriver(new EventLoop\Driver\UvDriver());
1717
return RevoltLoop::get();
1818
}
1919
}

test/UvTimerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function createLoop(): LoopInterface
1313
$this->markTestSkipped("ext-uv required");
1414
}
1515

16-
EventLoop::setDriver(new EventLoop\Driver\UvDriver);
16+
EventLoop::setDriver(new EventLoop\Driver\UvDriver());
1717
return RevoltLoop::get();
1818
}
1919
}

0 commit comments

Comments
 (0)