Skip to content

Releases: alekitto/class-finder

0.6.0

11 Dec 15:00
1e57e7f
Compare
Choose a tag to compare

What's new

  • Generate classmap from offline finders (35172ed)
  • Fully support phpdocumentor/reflection 4.x (dda7d8f)
  • Add finder based on nikic/php-parser (8f270eb)

Fixes

  • Normalize path separator
  • Skip invalid files/classes in offline finders

Full Changelog: 0.5.4...0.6.0

0.5.4

15 Oct 08:43
d5a77ac
Compare
Choose a tag to compare

What's Changed

  • Iterate psr-0/4 fallback dirs in composer finders (#23)

Full Changelog: 0.5.3...0.5.4

0.5.1

29 Jul 21:19
4b8d4bb
Compare
Choose a tag to compare

What's changed

  • Added support for phpdocumentor 6
  • Added FileFinder to abstract recursive and file-based finders
  • Added ClassMap finder and iterator

Fixes

  • Updated GHA actions
  • Do not call rewind on iteration construction
  • Add list of files known to cause errors to be skipped

Full Changelog: 0.5.0...0.5.1

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