pocketarc / codeigniter

Fork of CI3 kept up to date with PHP 8.3 (and beyond; will be maintained indefinitely).
MIT License
61 stars 14 forks source link

profiler: fix deprecation notices #8

Closed RedDragonWebDesign closed 2 months ago

RedDragonWebDesign commented 5 months ago

To test, use $this->output->enable_profiler(true);

Fixes around 10 deprecation notices emitted when the profiler is turned on. Example:

Message: Creation of dynamic property CI_Profiler::$_compile_benchmarks is deprecated

Filename: libraries/Profiler.php

Line Number: 109
RedDragonWebDesign commented 2 months ago

12 is a better approach. Closing this PR in favor of that one.