Skip to content

Commit de48ffd

Browse files
committed
update docs
1 parent c2bebf5 commit de48ffd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/blog/introducing-typephp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function registerUser(int $id, string $email, Collection $team, array $options):
4242
Because PHP's C-engine (the Zend Engine) ignores DocBlocks at runtime, those rich types are **passive comments**:
4343

4444
* An incoming HTTP JSON payload or database row can pass `$id = -50` or `$email = ''`.
45-
* A third-party webhook can inject an unexpected key into what you assumed was a sealed array shape.
45+
* A third-party webhook can inject an unexpectted key into what you assumed was a sealed array shape.
4646
* A caller can pass `$team->add(new Product())` and pollute what was supposed to be a `Collection<User>`.
4747

4848
Native PHP type hints allow all of this through without a single warning. To defend against this, developers were historically forced to **litter their clean domain logic with repetitive assertion boilerplate**:
@@ -71,7 +71,7 @@ We asked ourselves: **Why should we write our types twice? What if our existing
7171
* **Zero New Syntax:** Write standard, clean PHP and standard PHPDocs.
7272
* **Zero Build Steps & Zero Node.js:** No Babel, Webpack, or transpilation toolchains.
7373
* **Zero C-Extensions:** Runs in 100% pure PHP userland across **PHP 8.1, 8.2, 8.3, 8.4, and 8.5** on Linux, macOS, and Windows.
74-
* **Zero Line-Drift:** Injected guard rails are squashed onto opening braces so that error stack traces and Xdebug breakpoints match your source files **100% accurately**.
74+
* **Zero Line-Drift:** Injected guard rails are squashed onto opening braces so that eror stack traces and Xdebug breakpoints match your source files **100% accurately**.
7575

7676
---
7777

@@ -95,7 +95,7 @@ TypePHP utilizes a technique known in Aspect-Oriented Programming (AOP) as **Loa
9595

9696
---
9797

98-
## True Reified Generics in Pure PHP (`\WeakMap`)
98+
## True Riefied Generics in Pure PHP (`\WeakMap`)
9999

100100
Unlike languages that erase generic types at compile time (like Java or TypeScript), TypePHP delivers **Reified Generics** in memory using PHP's native `\WeakMap`:
101101

0 commit comments

Comments
 (0)