You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f70b9ab
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AGENTS.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,7 @@ Build complete, long-term solutions, not MVPs or local workarounds. A broad chan
233
233
These rules apply to all code, including ported code.
234
234
235
235
-**Laravel-style config files** — Group related settings under Laravel's standard section comment blocks, with concise, user-facing explanations.
236
-
-Always use typed getters for values with one non-null type. Only use `get()`when null, union, or mixed values are meaningful. Add a test for any supported null behavior.
236
+
-Choose the getter from the setting's supported values. Use the matching nullable getter for one type plus null. Reserve `get()`for unions no getter covers, arbitrary values, or diagnostics that inspect malformed input. Omit the getter's default for a required key and supply an explicit default (including null) when omission is allowed. Add a test for supported null behavior.
237
237
- Cast environment-backed booleans and numbers in config files; if `null` is supported, cast only non-null values. Consumers must not repeat those casts. When a factory accepts raw configuration records, normalize types and documented optional defaults once at that boundary; never supply missing required members.
238
238
- Required settings live in shipped config and must not have a code-level fallback, so missing or misspelled keys fail loudly.
239
239
- Intentionally optional settings keep one owning fallback and remain discoverable in config or feature documentation. Document what omission or null means.
@@ -771,6 +771,8 @@ See the existing entries for database, Redis, Meilisearch, and Typesense as exam
771
771
772
772
Components is analyzed with its own `hypervel/phpstan` extension. [Static Analysis](src/docs/static-analysis.md#fixing-and-ignoring-diagnostics) is the source of truth for each diagnostic's intended fix and legitimate exceptions; the rules below add Components-specific requirements.
773
773
774
+
Components enables `noUntypedConfigReads` in production analysis. When no typed getter covers the accepted values or a diagnostic must inspect malformed input, keep the generic read and add a local `@phpstan-ignore hypervel.untypedConfigRead (reason)` explaining that contract.
775
+
774
776
**Keep `hypervel/phpstan` evolving** — Codify framework contracts and useful conventions. Prefer a simple framework fix when it prevents the mistake. Add rules for mistakes likely to recur in packages or apps, even when existing cases are already fixed. Check each proposed rule against real mistakes and realistic correct usage. Reject rules that flag correct code or need a growing list of exceptions to avoid doing so. Keep inference limits explicit. Reach peer consensus, then seek owner approval for a new rule. If an existing rule flags correct code, fix the analyzer and leave the correct code alone.
775
777
776
778
The main PHPStan configuration excludes `tests/`. Use `composer analyse:tests` for test-only rules.
Copy file name to clipboardExpand all lines: docs/todo.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Release preparation
4
4
5
-
- Before releasing Hypervel 0.4, ensure every split repository has a current `0.4` branch and a Packagist entry. Create the missing `hypervel/attributes`, `hypervel/workbench` and `hypervel/sentinel` repositories and registrations; Horizon and Telescope require Sentinel. Check these prerequisites before running `bin/release.sh`, which pushes the main repository's tag before checking out the component branches.
5
+
- Before releasing Hypervel 0.4, ensure every split repository has a current `0.4` branch and a Packagist entry. Ensure the split job can access `hypervel/attributes`, `hypervel/phpstan`, and `hypervel/schema-parser`. The release script publishes the component tags before pushing the framework tag.
6
6
- Once the 0.4 splits are published, verify a full Composer installation of the `hypervel/hypervel` skeleton, re-enable its manually disabled `tests` workflow, and confirm the first CI run passes.
7
7
- Replace `psy/psysh``dev-main` in the root and `src/tinker` manifests with the first stable release containing PsySH #951–#954. The latest stable release, v0.12.24, predates those changes.
if ($config === null && str_starts_with($name, 'ondemand_')) {
671
672
thrownewInvalidArgumentException("On-demand provider [{$name}] was not built in this operation. Build it where the work runs, such as the agent's provider() method.");
0 commit comments