Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@hochleitner hochleitner released this 05 Feb 15:25
v1.0.0
f267b61

1.0.0 - 2024-02-05

Added

  • Added PEST for testing.
  • The Router object ($this) is now passed to the callback of a route for access to the router's methods.

Changed

  • Switched to PHP 8.3 as a minimum requirement.
  • Switched return type of redirect() and redirectTo to never.
  • addRoute() now accepts an enum HttpMethod instead of a string. This removes the necessity to check the validity of the input. If it's not a valid enum value, the interpreter throws a TypeError. Plus, it introduces enums to students.
  • Checked log calls for null safety.
  • basePath is now a property and not static anymore.
  • Class constants are now typed.
  • Updated all dependencies.

Removed

  • composer.lock is now excluded from version control for more flexibility.