Skip to content

refactor: deprecate redundant FileHandler cache methods #9511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

paulbalandan
Copy link
Member

Description
Deprecates the following protected methods of FileHandler as being redundant from related filesystem_helper functions:

  • FileHandler::writeFile()
  • FileHandler::deleteFiles()
  • FileHandler::getDirFileInfo()
  • FileHandler::getFileInfo()

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@paulbalandan paulbalandan force-pushed the deprecate-filehandler-cache-redundant-methods branch from 75e6462 to 84569d6 Compare April 10, 2025 18:08
@paulbalandan paulbalandan added the refactor Pull requests that refactor code label Apr 10, 2025
Copy link
Contributor

@neznaika0 neznaika0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good detection

@ddevsr
Copy link
Collaborator

ddevsr commented Apr 11, 2025

Can include filesystem removed? I like no effect after upgrade to v4.6.1. Just make them deprecated, and 4.7.x function will be removed

@paulbalandan
Copy link
Member Author

Can include filesystem removed? I like no effect after upgrade to v4.6.1. Just make them deprecated, and 4.7.x function will be removed

I'm sorry I don't understand your comment. Can you please elaborate?

@ddevsr
Copy link
Collaborator

ddevsr commented Apr 11, 2025

I mean just add the @deprecated annotation to the function without changing anything else.

@paulbalandan
Copy link
Member Author

Sure. I'll change them later.

@paulbalandan paulbalandan force-pushed the deprecate-filehandler-cache-redundant-methods branch from 84569d6 to d6001a8 Compare April 12, 2025 13:38
@paulbalandan paulbalandan merged commit bd60f50 into codeigniter4:develop Apr 12, 2025
49 checks passed
@paulbalandan paulbalandan deleted the deprecate-filehandler-cache-redundant-methods branch April 12, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Pull requests that refactor code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants