Open i582 opened 3 years ago
PHP Version: 7.4 and 8.0
OS: macOS
The minimal code in which the bug appears:
<?php class User { public string $firstName; public string $lastName; } $user = new User(); $firstName = $user->firstName;
Actual Behavior:
No error.
Expected Behavior:
Warning about uninitialized property.
PHP Version: 7.4 and 8.0
OS: macOS
The minimal code in which the bug appears:
Actual Behavior:
No error.
Expected Behavior:
Warning about uninitialized property.