Skip to content

Releases: alekitto/class-finder

0.5.0

15 Apr 08:28
3ee1794
Compare
Choose a tag to compare

What's changed

  • useAutoloading can now be used to instruct the finder to use autloading or include_once while iterating classes
  • Autoloading method is used by default from ComposerFinder
  • Expose skipNonInstantiable method to skip abstract classes, interfaces and traits
  • Add skipBogonFiles method to reflection finders to prevent fatal errors in well-known cases
  • Add roave/better-reflection reflection factory

Fixes

  • unwind error handlers stack to remove class-finder error handler
  • fix a typo in README by @szepeviktor in #16

New Contributors

Full Changelog: 0.4.0...0.5.0

0.4.0

11 Feb 13:17
3a405f0
Compare
Choose a tag to compare

What's Changed

  • add filter for files by @alleknalle in #10
    You can now call pathFilter on the finders to filter files by filepath before inclusion

New Contributors

Full Changelog: 0.3.2...0.4.0

0.3.2

29 Mar 09:25
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.3.1...0.3.2

0.3.1

24 Mar 01:17
053c95c
Compare
Choose a tag to compare

CHANGES:

  • Drop support for PHP 7.4, only 8.0+ is supported now
  • Support phpdocumentor/reflection 5.0
  • Fix #5: fatal error if error handler do not return bool
  • Add package documentation (https://alekitto.github.io/class-finder/)

0.3.0

31 Mar 10:59
18898c2
Compare
Choose a tag to compare

BREAKING CHANGES

  • Added ReflectorFactoryInterface: reflector objects can be customized or filtered before being yielded.
    Any throw-ed error inside the reflect method will result in the class to be skipped from the iteration.

CHANGES

  • notInNamespace filter added to finders
  • Fixed namespace filtering error in phpdocumentor finder

0.2.2

22 Feb 17:15
0881f19
Compare
Choose a tag to compare

FIXES:

  • Always normalize paths when iterating. This should fix some issues in windows.
  • Check that error handler has not been changed when unregistering
  • Require thecodingmachine/safe package

0.2.1

20 Feb 00:21
54c93db
Compare
Choose a tag to compare

CHANGES:

  • Add ErrorHandler to handle errors on requirement/inclusion
  • Fix crash on authoritative class map iteration

0.2.0

19 Dec 12:17
81cb222
Compare
Choose a tag to compare

BREAKING CHANGES:

  • phpdocumentor/reflection 3 is not supported anymore. Please update to v4 if you want to use the phpdocumentor finder.
  • Added withAttribute to FinderInterface to filter class by PHP attribute.

CHANGES:

  • Allow PHP 8. Drop support for PHP < 7.4.
  • Changed code style rules.
  • Check code against PHPStan.