From 8c003731f9334507bad783c72cb423194f41ae8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20de=20la=20Pen=CC=83a?= Date: Fri, 30 Oct 2026 19:18:24 +0000 Subject: [PATCH] feat: Hide sensitive columns from find and replace Ports this package's find-replace exclusion and its test from develop. The tables and columns it names exist on this branch too. Requires nails/module-find-replace dev-feature/pre-new-admin for the exclusion interface in tests and static analysis. Co-Authored-By: Claude Opus 5.5 --- composer.json | 1 + src/FindReplace/Exclusion/Package.php | 20 ++++++++++++ tests/FindReplace/Exclusion/PackageTest.php | 34 +++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 src/FindReplace/Exclusion/Package.php create mode 100644 tests/FindReplace/Exclusion/PackageTest.php diff --git a/composer.json b/composer.json index 089993e..40583c5 100644 --- a/composer.json +++ b/composer.json @@ -26,6 +26,7 @@ "league/commonmark": "^2.7" }, "require-dev": { + "nails/module-find-replace": "dev-feature/pre-new-admin", "phpunit/phpunit": "^12.0", "phpstan/phpstan": "^2.0" }, diff --git a/src/FindReplace/Exclusion/Package.php b/src/FindReplace/Exclusion/Package.php new file mode 100644 index 0000000..e00cd69 --- /dev/null +++ b/src/FindReplace/Exclusion/Package.php @@ -0,0 +1,20 @@ +hidden() + ); + } + + public function testReadOnly(): void + { + self::assertSame( + [], + (new Package())->readOnly() + ); + } +}