Skip to content

Commit 1132f6e

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

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎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+
privatestring|false$path = false;
2323

2424
protectedfunctiontearDown(): 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-
privatestatic$phpBin;
32-
privatestatic$process;
33-
privatestatic$sigchild;
31+
privatestaticstring$phpBin;
32+
privatestatic?Process$process = null;
33+
privatestaticbool$sigchild;
3434

3535
publicstaticfunctionsetUpBeforeClass(): void
3636
{

0 commit comments

Comments
 (0)