From 42a71fd1acc3a0ea280804c80bd4e1c069223e1c Mon Sep 17 00:00:00 2001 From: Paul Tibbetts Date: Wed, 11 Dec 2024 14:58:23 +0000 Subject: [PATCH 1/2] chore(deps): update deps to latest --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 07cc31b..35504f5 100644 --- a/composer.json +++ b/composer.json @@ -3,8 +3,8 @@ "type": "library", "require": { "php": "^8.3", - "rector/rector": "^1.1.1", - "driftingly/rector-laravel": "^1.2.0" + "rector/rector": "^1.2.10", + "driftingly/rector-laravel": "^1.2.6" }, "license": "MIT", "authors": [ From 2a3a16edaf27551c6b14d383161e8def4c0199ec Mon Sep 17 00:00:00 2001 From: Paul Tibbetts Date: Wed, 11 Dec 2024 14:58:49 +0000 Subject: [PATCH 2/2] feat(rule): add generic return type to relations --- dist/add-generic-return-type-to-relations.php | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dist/add-generic-return-type-to-relations.php diff --git a/dist/add-generic-return-type-to-relations.php b/dist/add-generic-return-type-to-relations.php new file mode 100644 index 0000000..81d881d --- /dev/null +++ b/dist/add-generic-return-type-to-relations.php @@ -0,0 +1,10 @@ +withPaths([__DIR__ . '/app']) + ->withRules([ + \RectorLaravel\Rector\ClassMethod\AddGenericReturnTypeToRelationsRector::class, + ]); \ No newline at end of file