xref: /PHP-8.0/Zend/tests/bug61970.phpt (revision 7aacc705)
1--TEST--
2Bug #61970 (Restraining __construct() access level in subclass gives a fatal error)
3--FILE--
4<?php
5
6class Foo {
7    public function __construct(){}
8}
9
10class Bar extends Foo {
11    protected function __construct(){}
12}
13
14echo 'DONE';
15?>
16--EXPECT--
17DONE
18