Skip to content

Commit

Permalink
Add abstract __construct() test for #[\Override] (024.phpt)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Sep 14, 2023
1 parent b169725 commit 0e9d658
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Zend/tests/attributes/override/024.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--TEST--
#[\Override]: abstract __construct
--FILE--
<?php

abstract class P {
public abstract function __construct();
}

class C extends P {
#[\Override]
public function __construct() {}
}

echo "Done";

?>
--EXPECT--
Done

0 comments on commit 0e9d658

Please sign in to comment.