Skip to content

Commit b9818ea

Browse files
committed
ok, so only for php 7.4 and 8...
1 parent 9cc9347 commit b9818ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/commands/AiGenerateInstructionsCommandTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ protected function setProjectRoot($command, $path) {
7171
}
7272
}
7373
if ($property) {
74+
// only setAccessible if php 8 or php 7.4
75+
if (PHP_VERSION_ID < 80100) {
76+
$property->setAccessible(true);
77+
}
7478
$property->setValue($command, $path);
7579
}
7680
}

0 commit comments

Comments
 (0)