Skip to content

Commit 378fe72

Browse files
committed
AC-13306::Adobe Commerce 2.4.8 core code is compatible with PHP 8.4
1 parent 3e7cd60 commit 378fe72

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

dev/tests/static/testsuite/Magento/Test/Php/LiveCodeTest.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,12 @@ class LiveCodeTest extends \PHPUnit\Framework\TestCase
5555
*/
5656
protected function setUp(): void
5757
{
58-
if(!self::$executedCompilation ){
59-
$this->_shell = new \Magento\Framework\Shell(new \Magento\Framework\Shell\CommandRenderer());
60-
$basePath = BP;
61-
$basePath = str_replace('\\', '/', $basePath);
62-
63-
$this->_command = 'php ' . $basePath . '/bin/magento setup:di:compile';
64-
$this->_shell->execute($this->_command);
65-
self::$executedCompilation = true;
66-
}
58+
$this->_shell = new \Magento\Framework\Shell(new \Magento\Framework\Shell\CommandRenderer());
59+
$basePath = BP;
60+
$basePath = str_replace('\\', '/', $basePath);
61+
62+
$this->_command = 'php ' . $basePath . '/bin/magento setup:di:compile';
63+
self::$executedCompilation = true;
6764
}
6865

6966
/**

0 commit comments

Comments
 (0)