1--TEST--
2#[\Deprecated]: __construct() respects that properties are readonly.
3--FILE--
4<?php
5
6$d = new \Deprecated("foo");
7$d->__construct("bar");
8
9?>
10--EXPECTF--
11Fatal error: Uncaught Error: Cannot modify readonly property Deprecated::$message in %s:%d
12Stack trace:
13#0 %s(%d): Deprecated->__construct('bar')
14#1 {main}
15  thrown in %s on line %d
16