- Add detection of pre-existing __construct methods in class - Throw CompileTimeAttributeError when constructor property conflicts with existing method - Update test to use proper exception expectation pattern - Add new test case for parameter order independence - Create helper method to find declared constructors in class statements - Improve error messaging with specific class and method informationpull/34/head
parent
89799b9b8c
commit
2287695b44
3 changed files with 49 additions and 1 deletions
@ -0,0 +1,16 @@ |
||||
<?php |
||||
|
||||
class ReorderedConstructor |
||||
{ |
||||
#[Constructor] |
||||
private string $name; |
||||
|
||||
#[Constructor] |
||||
private int $id; |
||||
|
||||
public function __construct(int $id, string $name) |
||||
{ |
||||
$this->id = $id; |
||||
$this->name = $name; |
||||
} |
||||
} |
||||
Loading…
Reference in new issue