Skip to content

Commit 1132f6e

Browse files
Use typed properties in tests as much as possible
1 parent 7fa4ed6 commit 1132f6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/ExecutableFinderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
class ExecutableFinderTest extends TestCase
2121
{
22-
private $path;
22+
private string|false $path = false;
2323

2424
protected function tearDown(): void
2525
{

Tests/ProcessTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
*/
2929
class ProcessTest extends TestCase
3030
{
31-
private static $phpBin;
32-
private static $process;
33-
private static $sigchild;
31+
private static string $phpBin;
32+
private static ?Process $process = null;
33+
private static bool $sigchild;
3434

3535
public static function setUpBeforeClass(): void
3636
{

0 commit comments

Comments
 (0)