xref: /PHP-7.4/Zend/tests/bug61970.phpt (revision 5324fb1f)
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--EXPECT--
16DONE
17