valet-linux-plus icon indicating copy to clipboard operation
valet-linux-plus copied to clipboard

WIP - Enhance type safety and comply to PHP 8.4

Open anasgets111 opened this issue 9 months ago • 1 comments

  • Updated method signatures to enforce stricter type checks and return types in various drivers and core classes.
  • Improved error handling by ensuring methods return appropriate values (e.g., null or false) when encountering issues.
  • Enhanced readability by restructuring conditional statements and using null coalescing where applicable.
  • Added type hints for parameters and return types in methods to improve code clarity and maintainability.
  • Refined logic in methods to ensure consistent behavior and prevent potential errors.
  • Updated compatibility checks and helper functions to handle edge cases more gracefully.
  • first batch

anasgets111 avatar Apr 13 '25 04:04 anasgets111