diff --git a/tests/commands/AiGenerateInstructionsCommandTest.php b/tests/commands/AiGenerateInstructionsCommandTest.php index b905f9d..8e53444 100644 --- a/tests/commands/AiGenerateInstructionsCommandTest.php +++ b/tests/commands/AiGenerateInstructionsCommandTest.php @@ -71,6 +71,10 @@ class AiGenerateInstructionsCommandTest extends TestCase { } } if ($property) { + // only setAccessible if php 8 or php 7.4 + if (PHP_VERSION_ID < 80100) { + $property->setAccessible(true); + } $property->setValue($command, $path); } }