Closed (fixed)
Project:
Smart Image Optimizer
Version:
1.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 May 2026 at 11:12 UTC
Updated:
31 May 2026 at 08:40 UTC
Jump to comment: Most recent
Comments
Comment #3
revathi.b commentedMR !1 fixing this issue.
Comment #4
nishantHi Revathi.b,
Thank you for reporting this and providing the solution! You are correct—PHP 8.2+ requires explicit property declarations to avoid these deprecation notices.
I would love to have you contribute this fix to the project. Could you please create a Merge Request (MR) with the following changes?
Add the explicit property declaration for the logger:
/**
* The logger.
*
* @var \Psr\Log\LoggerInterface
*/
protected $logger;
Remove the unused $loggerFactory property and its docblock, as it is currently redundant.
Comment #5
revathi.b commentedHi Nishant,
It is updated, please check.
Comment #6
nishant