Commit 5758e00
committed
Use method param type hints instead of PHPDoc
Since we require PHP 7.4, contravariance in param types is supported,
so we do not need to worry about subclasses that widen the param type.
It will be only breaking in the unlikely case a subclass uses a type that
does not extend `DOMElement`, contradicting the PHPDoc type annotation.1 parent f682439 commit 5758e00
2 files changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | 549 | | |
554 | | - | |
| 550 | + | |
555 | 551 | | |
556 | 552 | | |
557 | 553 | | |
| |||
0 commit comments