| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | use Photonic_Plugin\Layouts\Core_Layout; |
| 7 | 7 | use Photonic_Plugin\Platforms\Base; |
| 8 | 8 | |
| 9 | 9 | class Stack_Trace implements Printable { |
| 10 | - public $events = []; | |
| 10 | + public array $events = []; | |
| 11 | 11 | |
| 12 | 12 | public function add_to_first_open_event($new_event) { |
| 13 | 13 | $found = false; |
| 14 | 14 | foreach ($this->events as $id => $event) { |
| @@ -82,9 +82,9 @@ | ||
| 82 | 82 | return $ret; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | |
| 86 | - public function html(Base $module, ?Core_Layout $layout = null, $print = false): string { | |
| 86 | + public function html(Base $module, ?Core_Layout $layout, bool $print = false): string { | |
| 87 | 87 | $ret = "<!--\n"; |
| 88 | 88 | $ret .= "Stats for Platform: {$module->provider}, Gallery: {$module->gallery_index}, Library: {$layout->get_library()}\n"; |
| 89 | 89 | $ret .= $this->get_nested_element(); |
| 90 | 90 | $ret .= "-->\n"; |