-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BC BREAK: removed
Scanner
component, removed FileReflection
, remo…
…ved `NameInformation` and made `DocBlockScanner` `@internal` The scanners were full of incomplete, untested and generally experimental code that would simply crash when presented with something like PHP 8 code. In addition to that, they were extremely unmaintainable due to the code being written for PHP 5, and never being touched afterwards (too complex). In order to slim down things and keep maintenance cost low, the complete `Laminas\Code\Scanner` component has been trashed, with the exception of `Laminas\Code\Scanner\DocBlockScanner`, which is still used in in some reflection internals. It is advised for end-users to move to more modern tooling, such as [`roave/better-reflection`](https://github.com/Roave/BetterReflection) which provides a safer (and well tested) API to scan source directories and extract reflection information without loading any potentially dangerous PHP files. The following components have been removed from the public API: * `Laminas\Code\Scanner\*` * `Laminas\Code\NameInformation` (unused in this package) * `Laminas\Code\Reflection\FileReflection` (use `roave/better-reflection` instead) * `Laminas\Code\Generic\Prototype\*`, which contains utilities to define custom docblock types: please consider using something like https://github.com/phpDocumentor/ReflectionDocBlock instead.
- Loading branch information
Showing
48 changed files
with
12 additions
and
6,802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.