Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop PHP 8.0 support #431

Merged
merged 3 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ jobs:
ci:
uses: ray-di/.github/.github/workflows/continuous-integration.yml@v1
with:
old_stable: '["8.0", "8.1", "8.2"]
old_stable: '["8.1", "8.2"]
current_stable: 8.3
6 changes: 5 additions & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ build:
tests:
override:
- php-scrutinizer-run
environment:
php:
version: 8.2

filter:
paths: ["src/*"]
paths: ["src/*"]
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^8.0",
"php": "^8.1",
"ext-hash": "*",
"aura/cli": "^2.2",
"bear/app-meta": "^1.8",
Expand Down
10 changes: 3 additions & 7 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@
__DIR__ . '/tests-files',
]);

// register a single rule
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
$rectorConfig->rule(AnnotationBindingRector::class);

// define sets of rules
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_80
]);
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_81
]);
};
5 changes: 2 additions & 3 deletions tests/Provide/Representation/HalRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use BEAR\Resource\ResourceInterface;
use BEAR\Resource\ResourceObject;
use BEAR\Resource\Uri;
use Doctrine\Common\Annotations\AnnotationReader;
use FakeVendor\HelloWorld\Resource\App\Task;
use PHPUnit\Framework\TestCase;

Expand Down Expand Up @@ -158,7 +157,7 @@ public function testOptions(): void

public function testHalRendererNoParam(): void
{
$halRenderer = new HalRenderer(new AnnotationReader(), new HalLinker(new RouterReverseLinker(new FakeRouter())));
$halRenderer = new HalRenderer(new HalLinker(new RouterReverseLinker(new FakeRouter())));
$ro = new Task();
$ro->onPost();
$ro->uri = new Uri('app://self/task');
Expand All @@ -178,7 +177,7 @@ public function testHalRendererNoParam(): void

public function testHalRendererWithParam(): void
{
$halRenderer = new HalRenderer(new AnnotationReader(), new HalLinker(new RouterReverseLinker(new FakeRouter())));
$halRenderer = new HalRenderer(new HalLinker(new RouterReverseLinker(new FakeRouter())));
$ro = new Task();
$ro->uri = new Uri('app://self/task?id=1');
$ro->uri->method = 'post';
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"squizlabs/php_codesniffer": "^3.7",
"vimeo/psalm": "^5.15",
"ray/rector-ray": "^1.1",
"rector/rector": "^0.18.1"
"rector/rector": "^1.0"
},
"config": {
"allow-plugins": {
Expand Down
26 changes: 13 additions & 13 deletions vendor-bin/tools/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading