<?php trait Bar { protected $things = []; function __destruct() { print_r($this->things); } } class Foo { protected $things = [ '1' => 'one' ]; use Bar; } new Foo();
You have javascript disabled. You will not be able to edit any code.