Skip to content

1.8.0

Latest

Choose a tag to compare

@koriym koriym released this 11 Nov 15:03
589bd9b

This release modernizes the framework by transitioning from the abandoned doctrine/annotations package to native PHP 8 attributes, while increasing the minimum PHP requirement to 8.2.

What's Changed

Major Updates

  • Migrated entirely to PHP 8 attributes, eliminating dependency on doctrine annotations
  • Raised minimum PHP version requirement from 8.1 to 8.2
  • Added PHP 8.5 support in CI workflow
  • Moved static analysis tools to vendor-bin/tools for better PHP 8.5 compatibility
  • Enhanced type safety by fixing all Psalm and PHPStan errors
  • Updated Scrutinizer config for PHP 8.4 and jammy image

Improvements

  • Added #[Override] attributes to all overridden methods
  • Made module and exception classes final for stricter inheritance control
  • Normalized schemeHost in WebRouter to prevent double slashes
  • Preserved exception chain when converting Error to ErrorException
  • Added symfony/polyfill-php83 for PHP 8.3 feature support

Removed

  • doctrine/annotations (officially abandoned)
  • doctrine/cache (officially abandoned)
  • doctrine/coding-standard, phpmd, phpmetrics, phpstan, psalm, rector from main composer.json (moved to vendor-bin/tools)
  • Legacy annotation imports and PHPDoc metadata

Fixed

  • Removed unused exception variables in demo code
  • Updated static analysis configurations (psalm.xml, phpstan.neon)

Migration Path

No migration steps required for users - all changes are internal framework improvements. Applications using BEAR.Sunday will benefit from improved type safety and modern PHP features.

Full Changelog

1.7.0...1.8.0