Skip to content

Commit

Permalink
DEP Limit PHP support for CMS 6
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 20, 2024
1 parent 72206dc commit 2ea9edd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.3",
"silverstripe/framework": "^6",
"silverstripe/cms": "^6",
"silverstripe/versioned": "^3"
Expand Down
9 changes: 4 additions & 5 deletions tests/php/Tasks/LinkFieldMigrationTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace SilverStripe\LinkField\Tests\Tasks;

use LogicException;
use ReflectionClass;
use ReflectionMethod;
use ReflectionProperty;
use RuntimeException;
use SilverStripe\Core\Convert;
use SilverStripe\Core\Environment;
Expand Down Expand Up @@ -1015,9 +1015,8 @@ public function testCheckForBrokenLinks(bool $hasBrokenLinks): void
public function testCheckForBrokenLinksWithHtmlOutput(bool $hasBrokenLinks): void
{
// Make sure we get HTML output
$reflectionCli = new ReflectionProperty(Environment::class, 'isCliOverride');
$reflectionCli->setAccessible(true);
$reflectionCli->setValue(false);
$reflectionEnvironment = new ReflectionClass(Environment::class);
$reflectionEnvironment->setStaticPropertyValue('isCliOverride', false);
try {
$brokenLinkFixtures = $this->getBrokenLinkFixtures($hasBrokenLinks);
$this->startCapturingOutput();
Expand Down Expand Up @@ -1062,7 +1061,7 @@ public function testCheckForBrokenLinksWithHtmlOutput(bool $hasBrokenLinks): voi
}
} finally {
// Make sure we unset the CLI override
$reflectionCli->setValue(null);
$reflectionEnvironment->setStaticPropertyValue('isCliOverride', null);
}
}

Expand Down

0 comments on commit 2ea9edd

Please sign in to comment.