Skip to content

Commit 1f84658

Browse files
committed
Add ArrayTypeException and refine README wording for clarity
1 parent 4854f2f commit 1f84658

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ final readonly class Profile
9999
Profile::fromScalars(id: 0, firstName: 'Alice', height: '172.5'); // throws exception
100100
```
101101

102-
##### Late fail with `Undefined` (object exists, fail on access)
102+
##### Late fail with `Undefined` (an object exists, fail on access)
103103

104104
```php
105105
$profile = Profile::fromScalars(id: 101, firstName: '', height: '172.5'); // created
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace PhpTypedValues\Exception;
6+
7+
class ArrayTypeException extends TypeException
8+
{
9+
}

0 commit comments

Comments
 (0)