From bdfe30a46841c1b72fed5e78c8281fd623d68d63 Mon Sep 17 00:00:00 2001 From: Gustavo Freze Date: Wed, 19 Aug 2026 20:54:54 -0300 Subject: [PATCH 1/2] chore: Align the tooling configuration with the ecosystem assets. --- .gitattributes | 3 --- phpstan.neon.dist | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index 17a3bff..fc3b730 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,9 +2,6 @@ *.php text diff=php -# Keep Claude tooling scripts out of GitHub's language statistics -/.claude export-ignore - # Dev-only, excluded from the Packagist tarball /.github export-ignore /docs export-ignore diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 1781e83..e464251 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -3,26 +3,24 @@ parameters: paths: - src - tests + tmpDir: reports/phpstan ignoreErrors: # The bcmath stubs type every operand as numeric-string. The library validates the shape # before a value reaches a calculator, and the Calculator contract documents it, so the # narrowing cannot be expressed without PHPDoc, which is prohibited inside src/Internal/. - identifier: argument.type path: src/Internal/Backends/BcMathCalculator.php - # PHPDoc is prohibited on concrete collaborators inside src/Internal/, so the working # lists inside the allocation algorithm are suppressed here rather than annotated. - identifier: argument.type path: src/Internal/Allocations/Allocation.php - identifier: missingType.iterableValue path: src/Internal/Allocations/Allocation.php - # Schoolbook multiplication fills the product by computed index, so PHPStan cannot prove the # result is still a list. It is: every index from zero upward is written before it is read. - identifier: argument.type path: src/Internal/Backends/Magnitude.php count: 1 - # PHPDoc is prohibited inside tests/, so data provider return types are suppressed here # rather than annotated. - identifier: missingType.iterableValue From c1149483604ba55493670c32c4a6c847922f15c1 Mon Sep 17 00:00:00 2001 From: Gustavo Freze Date: Wed, 19 Aug 2026 20:54:54 -0300 Subject: [PATCH 2/2] docs: Standardize the Copilot instructions. --- .github/copilot-instructions.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/copilot-instructions.md diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 0000000..e34c801 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,12 @@ +# Copilot instructions + +## Context + +PHP library in the tiny-blocks ecosystem. + +## Mandatory pre-task step + +Before starting any task, read and strictly follow `.claude/CLAUDE.md` and every rule file in +`.claude/rules/`. These files are the absolute source of truth for code generation. Apply every +rule strictly. Do not deviate from the patterns, folder structure, or naming conventions defined +in them.