[BUG]: SPK usage inside own powers does not add use class in the correct place inside the class. #1232
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What Happened?
I added the Joomla Power: Factory inside my own power. When i compiled it. It did not add the use statement to the top of the file rather inside the class tag.
Steps to reproduce the Bug
create new power and add a Joomla SPK inside the function you create.
Expect the use statement to be added to top of the file.
Result:
The code inside the gui was:
Which Joomla version are you compiling in?
5.3.2
Which PHP version are you compiling in?
8.3
Which Joomla versions are you targeting?
5
Which PHP version are you targeting?
8.3
Which Web server is JCB running on?
Litespeed
Which Relational Database is JCB running on?
MariaDB 11.4
Which OS is JCB running on?
Almalinux
Which JCB version are you using?
5.1.1 stable
Where in JCB did this issue occur?
Compilation of a component
On which browsers did you encounter the issue?
Firefox
Additional Comments
No response