Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions doc/book/generator/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ class World

Another common use case is to update existing code -- for instance, to add a method to a class. In
such a case, you must first inspect the existing code using reflection, and then add your new
method. `Zend\Code\Generator` makes this trivially simple, by leveraging
\[ZendCodeReflection\](zend.code.reflection).
method. `Zend\Code\Generator` makes this trivially simple, by leveraging `Zend\Code\Reflection`.

As an example, let's say we've saved the above to the file `World.php`, and have already included
it. We could then do the following:
Expand Down