Skip to content

Commit 8ebe076

Browse files
Update docs
1 parent f7e8140 commit 8ebe076

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/prologue/upgrade.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- PHP 7.3 and 7.4 was dropped
1111
- Laravel 6.0 was dropped
1212
- Dragon Code: Contracts (`dragon-code/contracts`) was dropped
13+
- Added property typing
1314

1415
## Medium Impact Changes
1516

@@ -91,3 +92,16 @@ If your class does not contain a `down` method, then you can replace the `up` me
9192
### Changed Migration Repository
9293

9394
Just call the `php artisan migrate` command to make changes to the action repository table.
95+
96+
### Added property typing
97+
98+
Make sure all overridden properties are typed:
99+
100+
```
101+
protected $once >> protected bool $once
102+
protected $transactions >> protected bool $transactions
103+
protected $transactionAttempts >> protected int $transactionAttempts
104+
protected $environment >> protected string|array|null $environment
105+
protected $exceptEnvironment >> protected string|array|null $exceptEnvironment
106+
protected $before >> protected bool $before
107+
```

0 commit comments

Comments
 (0)